1. Christian Kellermann
  2. doodle

Commits

Christian Kellermann  committed 833ecf4

Print call-chain in condition handler

  • Participants
  • Parent commits 4da5b92
  • Branches master

Comments (0)

Files changed (1)

File doodle.scm

View file
  • Ignore whitespace
                 (with-exception-handler
                  (lambda (e)
                    (fprintf (current-error-port) "Exception in world-changes: ~a, disabling world-changes.~%" ((condition-property-accessor 'exn 'message) e))
+                   (print-call-chain (current-error-port))
                    (k (world-changes values)))
                  (lambda ()
                    (*world-changes*
                 (with-exception-handler
                  (lambda (e)
                    (fprintf (current-error-port) "Exception in world-ends: ~a, ignoring world-ends.~%" ((condition-property-accessor 'exn 'message) e))
+                   (print-call-chain (current-error-port))
                    (k (world-ends values)))
                  (lambda ()
                    (*world-ends*)))))
      (with-exception-handler
       (lambda (e)
         (fprintf (current-error-port) "Exception in world-inits: ~a, ignoring world-inits.~%" ((condition-property-accessor 'exn 'message) e))
+        (print-call-chain (current-error-port))
         (k (world-inits values)))
       (lambda ()
         (*world-inits*)))))