mirror of
https://github.com/nushell/nushell.git
synced 2025-04-18 18:28:19 +02: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,
|
span,
|
||||||
},
|
},
|
||||||
_ => Value::Error {
|
_ => 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