From 9dbf7556b8977fbcc6a962879b68e63bdbeed838 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Mon, 13 Jun 2022 07:01:00 -0500 Subject: [PATCH] more verbose error handling (#5765) --- crates/nu-command/src/conversions/into/int.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/src/conversions/into/int.rs b/crates/nu-command/src/conversions/into/int.rs index a1ff6fffb5..2a309fb96d 100644 --- a/crates/nu-command/src/conversions/into/int.rs +++ b/crates/nu-command/src/conversions/into/int.rs @@ -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, + ), }, } }