mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 04:45:04 +02:00
CantConvert improvements (#4926)
* CantConvert improvements * cargo fmt
This commit is contained in:
@ -47,7 +47,8 @@ impl From<ShellError> for LabeledError {
|
||||
msg,
|
||||
span: None,
|
||||
},
|
||||
ShellError::CantConvert(expected, input, span) => LabeledError {
|
||||
ShellError::CantConvert(expected, input, span)
|
||||
| ShellError::CantConvertWithHelp(expected, input, span, _) => LabeledError {
|
||||
label: format!("Can't convert to {}", expected),
|
||||
msg: format!("can't convert {} to {}", expected, input),
|
||||
span: Some(span),
|
||||
|
Reference in New Issue
Block a user