mirror of
https://github.com/nushell/nushell
synced 2024-12-27 13:33:16 +00:00
more verbose error handling (#5765)
This commit is contained in:
parent
caafd26deb
commit
9dbf7556b8
1 changed files with 4 additions and 1 deletions
|
@ -191,7 +191,10 @@ pub fn action(input: &Value, span: Span, radix: u32) -> Value {
|
|||
span,
|
||||
},
|
||||
_ => Value::Error {
|
||||
error: ShellError::UnsupportedInput("'into int' for unsupported type".into(), span),
|
||||
error: ShellError::UnsupportedInput(
|
||||
format!("'into int' for unsupported type '{}'", input.get_type()),
|
||||
span,
|
||||
),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue