mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +01:00
Fix histogram error message (#12197)
This PR improves the error message for issue #12194 Co-authored-by: Thomas Simmer <thomas.simmer@arsene-innovation.com>
This commit is contained in:
parent
ad2fd520ca
commit
bb1fe958b4
@ -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 }
|
||||
})?)
|
||||
|
Loading…
Reference in New Issue
Block a user