feat(generate): explicitly disallow non-terminals in non-terminals

This commit is contained in:
Amaan Qureshi 2025-01-12 03:14:54 -05:00
parent d65a74a667
commit 9d9c76e693
2 changed files with 11 additions and 1 deletions

View file

@ -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 {