diff options
author | Damien George <damien.p.george@gmail.com> | 2015-07-27 22:20:00 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-07-27 22:20:00 +0100 |
commit | 84d59c28738b8f84c0581de4f6bba01c1f1e40ef (patch) | |
tree | 1b7df6472fd182c2069ab40154dbebb83bd932c8 /py/emitnative.c | |
parent | d8a7f8bff2978a158203fec31f270b616f444047 (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.c | 2 |
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; } |