summaryrefslogtreecommitdiff
path: root/py/emitnative.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-07-27 22:20:00 +0100
committerDamien George <damien.p.george@gmail.com>2015-07-27 22:20:00 +0100
commit84d59c28738b8f84c0581de4f6bba01c1f1e40ef (patch)
tree1b7df6472fd182c2069ab40154dbebb83bd932c8 /py/emitnative.c
parentd8a7f8bff2978a158203fec31f270b616f444047 (diff)
py: For viper compile errors, add traceback with function and filename.
ViperTypeError now includes filename and function name where the error occurred. The line number is the line number of the start of the function definition, which is the best that can be done without a lot more work. Partially addresses issue #1381.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r--py/emitnative.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitnative.c b/py/emitnative.c
index 37dbd56b3..2a521c229 100644
--- a/py/emitnative.c
+++ b/py/emitnative.c
@@ -677,7 +677,7 @@ STATIC void emit_native_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scop
// right now we have a restriction of maximum of 4 arguments
if (scope->num_pos_args >= 5) {
- EMIT_NATIVE_VIPER_TYPE_ERROR(emit, "Viper functions don't currently support more than 4 arguments (while compiling '%q')", scope->simple_name); return;
+ EMIT_NATIVE_VIPER_TYPE_ERROR(emit, "Viper functions don't currently support more than 4 arguments");
return;
}