mirror of
https://github.com/danbulant/nushell
synced 2026-05-21 05:18:42 +00:00
Clean up error text
This commit is contained in:
parent
ef1a8aea80
commit
0a611266ce
2 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue