-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fixes error message when _ is used without dev mode #13886
Conversation
…optional_hashers_dev
…optional_hashers_dev
bot fmt |
@gupnik https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2669807 was started for your command Comment |
@gupnik Command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ty
Ok(true) | ||
} else { | ||
let msg = "`_` can only be used in dev_mode. Please specify an appropriate hasher."; | ||
Err(syn::Error::new(args_span, msg)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Err(syn::Error::new(args_span, msg)) | |
Err(syn::Error::new(arg.span(), msg)) |
To highlight exactly which argument we mean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thank you.
* Initial changes * Adds UI test for error when _ is used without dev_mode * Minor * ".git/.scripts/commands/fmt/fmt.sh" * Adds test to verify hasher * Fixes error message when _ is used without dev mode * Updates test * Addresses review comment --------- Co-authored-by: command-bot <>
As discussed in #13815