summaryrefslogtreecommitdiff
path: root/libguile/vm-engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/vm-engine.c')
-rw-r--r--libguile/vm-engine.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libguile/vm-engine.c b/libguile/vm-engine.c
index 5b38060d3..2e3a87644 100644
--- a/libguile/vm-engine.c
+++ b/libguile/vm-engine.c
@@ -139,9 +139,11 @@ VM_NAME (SCM vm, SCM program, SCM *argv, int nargs)
goto vm_error;
vm_error_unbound:
- /* At this point FINISH_ARGS should be a one-element list containing
- the name of the unbound variable. */
- err_msg = scm_from_locale_string ("VM: Unbound variable: ~s");
+ /* FINISH_ARGS should be the name of the unbound variable. */
+ SYNC_ALL ();
+ err_msg = scm_from_locale_string ("Unbound variable: ~s");
+ scm_error_scm (scm_misc_error_key, program, err_msg,
+ scm_list_1 (finish_args), SCM_BOOL_F);
goto vm_error;
vm_error_apply_to_non_list: