mirror of
https://github.com/nushell/nushell
synced 2024-12-28 22:13:10 +00:00
Use correct ParseError (#5431)
This commit is contained in:
parent
6623ed9061
commit
02a3430ef0
1 changed files with 2 additions and 2 deletions
|
@ -1109,8 +1109,8 @@ pub fn parse_module_block(
|
||||||
}
|
}
|
||||||
_ => (
|
_ => (
|
||||||
garbage_pipeline(&pipeline.commands[0].parts),
|
garbage_pipeline(&pipeline.commands[0].parts),
|
||||||
Some(ParseError::UnexpectedKeyword(
|
Some(ParseError::ExpectedKeyword(
|
||||||
"expected def or export keyword".into(),
|
"def or export keyword".into(),
|
||||||
pipeline.commands[0].parts[0],
|
pipeline.commands[0].parts[0],
|
||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue