From 8d81d59bcbac8fbae5e63740367fdf55c48691bb Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 23 Jul 2015 14:13:44 -0600 Subject: Just a tweak to the lexer to make some errors nicer. --- src/lexer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lexer.cpp') diff --git a/src/lexer.cpp b/src/lexer.cpp index 7704343..f959e3b 100644 --- a/src/lexer.cpp +++ b/src/lexer.cpp @@ -159,7 +159,8 @@ Token Lexer::nextTokenNormal() else { sBuf.clear(); - Bu::println("Invalid character discovered!"); + throw Bu::ExceptionBase( + "Invalid character discovered!"); } } break; -- cgit v1.2.3