Adjust the error messages to match the pattern "expected foo, found bar"
Closes #8492
This commit is contained in:
@@ -200,7 +200,7 @@ impl<'a> Parser<'a> {
|
||||
self.cur.next();
|
||||
}
|
||||
Some((_, other)) => {
|
||||
self.err(format!("expected `{}` but found `{}`",
|
||||
self.err(format!("expected `{}`, found `{}`",
|
||||
c,
|
||||
other).as_slice());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user