Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always display the line number in file excerpts #1203

Merged
merged 1 commit into from
Sep 3, 2018

Conversation

emillon
Copy link
Collaborator

@emillon emillon commented Aug 31, 2018

As discussed in #1196 (comment), we can be more consistent when printing these messages.

cc @anuragsoni

@emillon emillon requested a review from a user August 31, 2018 13:06
src/errors.ml Outdated
@@ -59,6 +59,9 @@ let file_lines path ~start ~stop =
aux [] 1
)

let pp_line padding_width pp (lnum, l) =
Format.fprintf pp "%*s: %s\n" padding_width lnum l
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to use | instead of : here? Or is it okay to switch that as part of #1168 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that can be done on the other PR, this keeps the diff small on this side.

Signed-off-by: Etienne Millon <me@emillon.org>
@emillon emillon merged commit b41f132 into master Sep 3, 2018
@emillon emillon deleted the always-display-file-number branch December 13, 2018 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants