Improved labeled error from plugins (#437)

* improved labeled error from plugins

* corrected span
This commit is contained in:
Fernando Herrera
2021-12-05 03:11:19 +00:00
committed by GitHub
parent 03e22b071a
commit 22469a9cb1
24 changed files with 611 additions and 208 deletions

View File

@ -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,

View File

@ -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,