1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-14 15:40:19 +02:00

Import unbound variable reports in the VM.

* libguile/vm-engine.c (VM_NAME)[vm_error_unbound]: Add comment.

* libguile/vm-i-system.c (variable_ref): Attempt provide the name of X
  in FINISH_ARGS.
This commit is contained in:
Ludovic Courtès 2010-07-26 16:36:24 +02:00
parent fefd60ba4b
commit 1af772303b
2 changed files with 8 additions and 3 deletions

View file

@ -140,6 +140,8 @@ 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");
goto vm_error;