mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 12:58:11 +02:00
Fix unsupported type message for some math related commands (#4672)
* Fix unsupported type message of some math related commands * changing the error form for UnsupportedInput * cargo fmt
This commit is contained in:
5
crates/nu-command/src/env/load_env.rs
vendored
5
crates/nu-command/src/env/load_env.rs
vendored
@ -75,7 +75,10 @@ impl Command for LoadEnv {
|
||||
}
|
||||
Ok(PipelineData::new(call.head))
|
||||
}
|
||||
_ => Err(ShellError::UnsupportedInput("Record".into(), span)),
|
||||
_ => Err(ShellError::UnsupportedInput(
|
||||
"Record not supported".into(),
|
||||
span,
|
||||
)),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user