parent
eea3f79c3c
commit
427857a78e
|
@ -138,11 +138,9 @@ fn into_record(
|
||||||
Value::Record { val, .. } => Value::record(val, span),
|
Value::Record { val, .. } => Value::record(val, span),
|
||||||
Value::Error { .. } => input,
|
Value::Error { .. } => input,
|
||||||
other => Value::error(
|
other => Value::error(
|
||||||
ShellError::OnlySupportsThisInputType {
|
ShellError::TypeMismatch {
|
||||||
exp_input_type: "string".into(),
|
err_message: format!("Can't convert {} to record", other.get_type()),
|
||||||
wrong_type: other.get_type().to_string(),
|
span: other.span(),
|
||||||
dst_span: call.head,
|
|
||||||
src_span: other.span(),
|
|
||||||
},
|
},
|
||||||
call.head,
|
call.head,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user