-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Improving Printf
error messages
#45366
Improving Printf
error messages
#45366
Conversation
Oh boy, looks like adding that additional error message that should cover what the docstring of
|
Ok, I forgot that this is a macro and of course the first argument is either a literal |
Ok, no idea why the buildkite/julia-master job is still running (maybe macOS stuff?), but it seems like the change in error messages didn't break anything, which is good. Looking through the existing tests, I'm not sure all of these are actually covered. Should I write some more to make sure they're explicitly covered? |
Where is the The extra new line between the error message and stacktrace might not be needed to sufficiently visually separate the text. With the indenting of the string and location arrow, I think there the error message will still be visually distinct from the stacktrace. |
Yeah, I thought I'd try it first to see if I like it. I'm not sold either way 🤷 |
Alright, I've changed the |
Huh - unrelated! |
Does this need anything else (rebase, rerun of CI) or can this be merged, if there are no other comments? |
This replaces all
"invalid format string: $f
style messages with more informative error messages about what exactly is wrong and where it goes wrong:There are also some parts that I couldn't yet figure out - I'll comment these specifics down below for a conversation.