mirror of
https://github.com/nushell/nushell.git
synced 2025-03-25 05:57:18 +01:00
Use correct ParseError (#5431)
This commit is contained in:
parent
6623ed9061
commit
02a3430ef0
@ -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 New Issue
Block a user