mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 01:00:20 +02:00
better messages on failed autocompilation
* libguile/load.c (auto_compile_catch_handler): * module/ice-9/boot-9.scm (load-in-vicinity): Nicer messages when autocompilation fails.
This commit is contained in:
parent
0083cb5ec4
commit
669ea4ebff
2 changed files with 26 additions and 7 deletions
|
@ -3506,8 +3506,14 @@ module '(ice-9 q) '(make-q q-length))}."
|
|||
(else #f))))))
|
||||
(lambda (k . args)
|
||||
(format (current-error-port)
|
||||
";;; WARNING: compilation of ~a failed:\n;;; key ~a, throw_args ~s\n"
|
||||
name k args)
|
||||
";;; WARNING: compilation of ~a failed:\n" name)
|
||||
(for-each (lambda (s)
|
||||
(if (not (string-null? s))
|
||||
(format (current-error-port) ";;; ~a\n" s)))
|
||||
(string-split
|
||||
(call-with-output-string
|
||||
(lambda (port) (print-exception port #f k args)))
|
||||
#\newline))
|
||||
#f)))
|
||||
|
||||
(define (absolute-path? path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue