more verbose error handling (#5765)

This commit is contained in:
Darren Schroeder 2022-06-13 07:01:00 -05:00 committed by GitHub
parent caafd26deb
commit 9dbf7556b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
),
},
}
}