summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-08-31 09:56:24 -0500
committerBryan Bishop <kanzure@gmail.com>2013-08-31 09:56:24 -0500
commitebb591a7ec624acce35d0378201c641724ac8d4c (patch)
tree00c6f818c3c71486177dce9d2313ef14821b4467
parent93514b18629fe42c0a2688dac57d90998ea5daaa (diff)
make a MacroException more verbose in preprocessor
-rw-r--r--preprocessor.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/preprocessor.py b/preprocessor.py
index c6ae137c4..a31386801 100644
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -520,7 +520,8 @@ def macro_translator(macro, token, line):
allowed_length += 2 # bank and label
else:
raise MacroException(
- "dunno what to do with a macro param with a size > 3"
+ "dunno what to do with a macro param with a size > 3 (size={size})"
+ .format(size=param_klass.size)
)
else:
raise MacroException(