From bb1fe958b4fff2ccc98b199f7f4eb00d3e79bb67 Mon Sep 17 00:00:00 2001 From: Thomas Simmer <37903526+thomassimmer@users.noreply.github.com> Date: Wed, 13 Mar 2024 19:00:45 +0100 Subject: [PATCH] Fix histogram error message (#12197) This PR improves the error message for issue #12194 Co-authored-by: Thomas Simmer --- crates/nu-command/src/charting/histogram.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-command/src/charting/histogram.rs b/crates/nu-command/src/charting/histogram.rs index 9c0b9334b6..a6b2b45e06 100755 --- a/crates/nu-command/src/charting/histogram.rs +++ b/crates/nu-command/src/charting/histogram.rs @@ -163,7 +163,7 @@ fn run_histogram( let t = v.get_type(); let span = v.span(); inputs.push(HashableValue::from_value(v, head_span).map_err(|_| { - ShellError::UnsupportedInput { msg: "Since --column-name was not provided, only lists of hashable values are supported.".to_string(), input: format!( + ShellError::UnsupportedInput { msg: "Since column-name was not provided, only lists of hashable values are supported.".to_string(), input: format!( "input type: {t:?}" ), msg_span: head_span, input_span: span } })?)