mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 10:45:41 +02:00
shows wrong item when each command runs to failed. (#6437)
* add --wrong-item for each command * fix test * show multiple errors at once
This commit is contained in:
@ -765,6 +765,12 @@ Either make sure {0} is a string, or add a 'to_string' entry for it in ENV_CONVE
|
||||
#[error("Unexpected abbr component `{0}`.")]
|
||||
#[diagnostic(code(nu::shell::unexpected_path_abbreviateion), url(docsrs))]
|
||||
UnexpectedAbbrComponent(String),
|
||||
|
||||
// It should be only used by commands accepts block, and accept inputs from pipeline.
|
||||
/// Failed to eval block with specific pipeline input.
|
||||
#[error("Eval block failed with pipeline input")]
|
||||
#[diagnostic(code(nu::shell::eval_block_with_input), url(docsrs))]
|
||||
EvalBlockWithInput(#[label("Invalid item")] Span, #[related] Vec<ShellError>),
|
||||
}
|
||||
|
||||
impl From<std::io::Error> for ShellError {
|
||||
|
Reference in New Issue
Block a user