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:
Thomas Simmer 2024-03-13 19:00:45 +01:00 committed by GitHub
parent ad2fd520ca
commit bb1fe958b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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