Assert on errors

This commit is contained in:
Eryn Wells 2016-12-27 12:13:21 -07:00
parent 606f2853a9
commit 575ebceb7c

View file

@ -409,6 +409,9 @@ impl Iterator for Lexer {
token = result.ok().unwrap();
break;
}
else if result.is_err() {
assert!(false, "{}", result.err().unwrap());
}
}
self.advance_begin();
match token {