[parser] Improve this error message
This commit is contained in:
parent
9c06b293f9
commit
4cd46d85a9
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ impl NodeParser for SymParser {
|
||||||
NodeParseResult::Complete { obj: obj }
|
NodeParseResult::Complete { obj: obj }
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
let msg = format!("Invalid token: {:?}", lex);
|
let msg = format!("Expected symbol found {:?}", lex);
|
||||||
NodeParseResult::error(msg)
|
NodeParseResult::error(msg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue