[parser] Improve this error message

This commit is contained in:
Eryn Wells 2018-08-23 18:04:56 -07:00
parent 9c06b293f9
commit 4cd46d85a9

View file

@ -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)
} }
} }