* libguile/control.c (scm_c_abort): Change error string if a prompt
isn't found.
* test-suite/tests/control.test ("abort to unknown prompt"): New test.
/* If we didn't find anything, raise an error. */
if (scm_is_false (prompt))
- scm_misc_error ("abort", "abort to unknown tag", scm_list_1 (tag));
+ scm_misc_error ("abort", "Abort to unknown prompt", scm_list_1 (tag));
cont = reify_partial_continuation (vm, prompt, winds, cookie);
(lambda (k x) x))
(lambda (k) k))))
(k))))
+
+(with-test-prefix "abort to unknown prompt"
+ (pass-if-exception "foo" '(misc-error . "^Abort to unknown prompt")
+ (abort-to-prompt 'does-not-exist)))