mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 19:47:45 +02:00
Convert ShellError::CommandNotFound to named fields (#11094)
# Description Part of #10700
This commit is contained in:
@ -685,7 +685,10 @@ pub enum ShellError {
|
||||
/// Check the spelling for the requested command and try again. Are you sure it's defined and your configurations are loading correctly? Can you execute it?
|
||||
#[error("Command not found")]
|
||||
#[diagnostic(code(nu::shell::command_not_found))]
|
||||
CommandNotFound(#[label("command not found")] Span),
|
||||
CommandNotFound {
|
||||
#[label("command not found")]
|
||||
span: Span,
|
||||
},
|
||||
|
||||
/// This alias could not be found
|
||||
///
|
||||
|
Reference in New Issue
Block a user