mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 01:15:14 +02:00
First step (#411)
This commit is contained in:
@ -38,8 +38,10 @@ impl Command for Hide {
|
||||
{
|
||||
pat
|
||||
} else {
|
||||
return Err(ShellError::InternalError(
|
||||
"Got something else than import pattern".into(),
|
||||
return Err(ShellError::LabeledError(
|
||||
"Unexpected import".into(),
|
||||
"import pattern not supported".into(),
|
||||
call.head,
|
||||
));
|
||||
};
|
||||
|
||||
|
@ -35,8 +35,10 @@ impl Command for Use {
|
||||
{
|
||||
pat
|
||||
} else {
|
||||
return Err(ShellError::InternalError(
|
||||
"Got something else than import pattern".into(),
|
||||
return Err(ShellError::LabeledError(
|
||||
"Unexpected import".into(),
|
||||
"import pattern not supported".into(),
|
||||
call.head,
|
||||
));
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user