mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
parent
eea3f79c3c
commit
427857a78e
1 changed files with 3 additions and 5 deletions
|
@ -138,11 +138,9 @@ fn into_record(
|
|||
Value::Record { val, .. } => Value::record(val, span),
|
||||
Value::Error { .. } => input,
|
||||
other => Value::error(
|
||||
ShellError::OnlySupportsThisInputType {
|
||||
exp_input_type: "string".into(),
|
||||
wrong_type: other.get_type().to_string(),
|
||||
dst_span: call.head,
|
||||
src_span: other.span(),
|
||||
ShellError::TypeMismatch {
|
||||
err_message: format!("Can't convert {} to record", other.get_type()),
|
||||
span: other.span(),
|
||||
},
|
||||
call.head,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue