mirror of
https://github.com/nushell/nushell
synced 2024-12-27 21:43:09 +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),
|
||||
Some(ParseError::UnexpectedKeyword(
|
||||
"expected def or export keyword".into(),
|
||||
Some(ParseError::ExpectedKeyword(
|
||||
"def or export keyword".into(),
|
||||
pipeline.commands[0].parts[0],
|
||||
)),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue