Make external app error uniform (#812)

This commit is contained in:
JT
2022-01-22 09:12:34 -05:00
committed by GitHub
parent 47d004ae24
commit b58aad5eb0
3 changed files with 15 additions and 9 deletions

View File

@ -142,8 +142,8 @@ pub enum ShellError {
),
#[error("External command")]
#[diagnostic(code(nu::shell::external_command), url(docsrs))]
ExternalCommand(String, #[label("{0}")] Span),
#[diagnostic(code(nu::shell::external_command), url(docsrs), help("{1}"))]
ExternalCommand(String, String, #[label("{0}")] Span),
#[error("Unsupported input")]
#[diagnostic(code(nu::shell::unsupported_input), url(docsrs))]