diff options
author | Mike Buland <mike@xagasoft.com> | 2015-07-23 14:13:44 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2015-07-23 14:13:44 -0600 |
commit | 8d81d59bcbac8fbae5e63740367fdf55c48691bb (patch) | |
tree | 10f59da8952c88ba18d9aa28fa9275600d4f1da3 /src | |
parent | f03026f5c2cde1eecfda273eaa52df10287f0f9e (diff) | |
download | clic-8d81d59bcbac8fbae5e63740367fdf55c48691bb.tar.gz clic-8d81d59bcbac8fbae5e63740367fdf55c48691bb.tar.bz2 clic-8d81d59bcbac8fbae5e63740367fdf55c48691bb.tar.xz clic-8d81d59bcbac8fbae5e63740367fdf55c48691bb.zip |
Just a tweak to the lexer to make some errors nicer.
Diffstat (limited to 'src')
-rw-r--r-- | src/lexer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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() | |||
159 | else | 159 | else |
160 | { | 160 | { |
161 | sBuf.clear(); | 161 | sBuf.clear(); |
162 | Bu::println("Invalid character discovered!"); | 162 | throw Bu::ExceptionBase( |
163 | "Invalid character discovered!"); | ||
163 | } | 164 | } |
164 | } | 165 | } |
165 | break; | 166 | break; |