forked from extern/nushell
Clean up error text
This commit is contained in:
parent
ef1a8aea80
commit
0a611266ce
@ -38,8 +38,8 @@ fn get_member(path: &Tagged<String>, obj: &Tagged<Value>) -> Result<Tagged<Value
|
|||||||
Some(v) => return Ok(v.clone()),
|
Some(v) => return Ok(v.clone()),
|
||||||
None => {
|
None => {
|
||||||
return Err(ShellError::labeled_error(
|
return Err(ShellError::labeled_error(
|
||||||
"Unknown field",
|
"Unknown column",
|
||||||
"object missing field",
|
"table missing column",
|
||||||
path.span(),
|
path.span(),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ fn pick(
|
|||||||
) -> Result<OutputStream, ShellError> {
|
) -> Result<OutputStream, ShellError> {
|
||||||
if fields.len() == 0 {
|
if fields.len() == 0 {
|
||||||
return Err(ShellError::labeled_error(
|
return Err(ShellError::labeled_error(
|
||||||
"Pick requires fields",
|
"Pick requires columns to pick",
|
||||||
"needs parameter",
|
"needs parameter",
|
||||||
name,
|
name,
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user