mirror of
https://github.com/nushell/nushell.git
synced 2025-01-23 06:39:17 +01:00
more verbose error handling (#5765)
This commit is contained in:
parent
caafd26deb
commit
9dbf7556b8
@ -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 New Issue
Block a user