aboutsummaryrefslogtreecommitdiff
path: root/module/main.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/main.scm')
-rw-r--r--module/main.scm15
1 files changed, 9 insertions, 6 deletions
diff --git a/module/main.scm b/module/main.scm
index 97256894..aa4a2dac 100644
--- a/module/main.scm
+++ b/module/main.scm
@@ -194,11 +194,14 @@
(lambda () (catch 'return (lambda () (wrapped-main args)) values))
(lambda () (run-hook shutdown-hook))
))
- (lambda (err raiser fmt . args)
- (format #t "Calp has crashed with [~a],
+ (case-lambda
+ ((err raiser fmt . args)
+ (format #t "Calp has crashed with [~a],
~?~%See ~a for full backtrace~%"
- err fmt args (port-filename (logport)))
- (format (logport) "<trace>~%<![CDATA[~%")
- (display-backtrace stack (logport))
- (format (logport) "]]></trace></run>~%"))
+ err fmt args (port-filename (logport)))
+ (format (logport) "<trace>~%<![CDATA[~%")
+ (display-backtrace stack (logport))
+ (format (logport) "]]></trace></run>~%"))
+ ((err . args)
+ (format #t "Calp has crashed with [~a]~%~a~%" err args)))
(lambda _ (set! stack (make-stack #t))))))