mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
also print error
This commit is contained in:
parent
c3189ebc9d
commit
ec0b6e98f6
2 changed files with 3 additions and 1 deletions
|
@ -114,6 +114,7 @@
|
|||
(guard (exn
|
||||
(else
|
||||
(warn "couldn't load config:" file)
|
||||
(print-exception exn)
|
||||
(print-stack-trace exn)
|
||||
(and (pair? opt) (car opt))))
|
||||
(call-with-input-file file read)))
|
||||
|
|
|
@ -12,11 +12,12 @@
|
|||
(cond-expand
|
||||
(chibi
|
||||
(import (only (meta) warn))
|
||||
(import (only (chibi) print-stack-trace))
|
||||
(import (only (chibi) print-exception print-stack-trace))
|
||||
(import (only (chibi filesystem) file-directory?)))
|
||||
(else
|
||||
(begin
|
||||
(define file-directory? file-exists?)
|
||||
(define (print-exception exn) (write exn))
|
||||
(define (print-stack-trace . o) #f)
|
||||
(define (warn msg . args)
|
||||
(let ((err (current-error-port)))
|
||||
|
|
Loading…
Add table
Reference in a new issue