mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 01:15:14 +02:00
Improved labeled error from plugins (#437)
* improved labeled error from plugins * corrected span
This commit is contained in:
@ -38,7 +38,7 @@ impl Command for Hide {
|
||||
{
|
||||
pat
|
||||
} else {
|
||||
return Err(ShellError::LabeledError(
|
||||
return Err(ShellError::SpannedLabeledError(
|
||||
"Unexpected import".into(),
|
||||
"import pattern not supported".into(),
|
||||
call.head,
|
||||
|
@ -35,7 +35,7 @@ impl Command for Use {
|
||||
{
|
||||
pat
|
||||
} else {
|
||||
return Err(ShellError::LabeledError(
|
||||
return Err(ShellError::SpannedLabeledError(
|
||||
"Unexpected import".into(),
|
||||
"import pattern not supported".into(),
|
||||
call.head,
|
||||
|
Reference in New Issue
Block a user