aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xp9kcc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/p9kcc.py b/p9kcc.py
index f907202..dccf2bb 100755
--- a/p9kcc.py
+++ b/p9kcc.py
@@ -929,7 +929,8 @@ class Ds9kCCompiler:
# Scalar initialiser
decl.initval, tok = self.parse_expr_to_rpn(it, tok)
if tok != ';':
- self.error('Expected \';\' after initialiser')
+ self.error('Expected \';\' after initialiser, '
+ 'but got \'%s\'' % (tok,))
elif tok != ';':
self.error('Parsed end of declaration but found no \';\'')
return True