feat(generate): explicitly disallow non-terminals in non-terminals
This commit is contained in:
parent
d65a74a667
commit
9d9c76e693
2 changed files with 11 additions and 1 deletions
|
|
@ -749,7 +749,7 @@ impl Generate {
|
|||
std::process::exit(1);
|
||||
} else {
|
||||
// Removes extra context associated with the error
|
||||
Err(anyhow!(err.to_string()))?;
|
||||
Err(anyhow!(err.to_string())).with_context(|| "Error when generating parser")?;
|
||||
}
|
||||
}
|
||||
if self.build {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue