don't re-print the error by default in call-with-error-handling
authorAndy Wingo <wingo@pobox.com>
Thu, 15 Jul 2010 10:47:58 +0000 (12:47 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 15 Jul 2010 10:47:58 +0000 (12:47 +0200)
* module/system/repl/error-handling.scm (call-with-error-handling):
  Previous post-error changed to "report"; now "catch", the default,
  doesn't re-print the error.

module/system/repl/error-handling.scm

index 6a2c0bc..db0beeb 100644 (file)
@@ -50,7 +50,7 @@
       (lambda () (%start-stack #t thunk))
 
       (case post-error
-        ((catch)
+        ((report)
          (lambda (key . args)
            (if (memq key pass-keys)
                (apply throw key args)
                    (format err "\nERROR: uncaught throw to `~a', args: ~a\n"
                            key args)))
                  (if #f #f)))))
+        ((catch)
+         (lambda (key . args)
+           (if (memq key pass-keys)
+               (apply throw key args))))
         (else
          (if (procedure? post-error)
              post-error ; a handler proc