mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
Merge pull request #337 from jonathandturner/cleanup_column_error
Clean up error text
This commit is contained in:
commit
2663405115
@ -38,8 +38,8 @@ fn get_member(path: &Tagged<String>, obj: &Tagged<Value>) -> Result<Tagged<Value
|
||||
Some(v) => return Ok(v.clone()),
|
||||
None => {
|
||||
return Err(ShellError::labeled_error(
|
||||
"Unknown field",
|
||||
"object missing field",
|
||||
"Unknown column",
|
||||
"table missing column",
|
||||
path.span(),
|
||||
));
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ fn pick(
|
||||
) -> Result<OutputStream, ShellError> {
|
||||
if fields.len() == 0 {
|
||||
return Err(ShellError::labeled_error(
|
||||
"Pick requires fields",
|
||||
"Pick requires columns to pick",
|
||||
"needs parameter",
|
||||
name,
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user