Display a backtrace for errors in channel->derivation-file-name
To help with debugging.
This commit is contained in:
parent
11144a5fe9
commit
0bd1fc7e87
1 changed files with 52 additions and 49 deletions
|
|
@ -292,6 +292,8 @@
|
|||
|
||||
(catch
|
||||
#t
|
||||
(lambda ()
|
||||
(with-throw-handler #t
|
||||
(lambda ()
|
||||
;; /etc is only missing if open-inferior/container has been used
|
||||
(when use-container?
|
||||
|
|
@ -341,13 +343,14 @@
|
|||
(close-inferior inferior)
|
||||
|
||||
file-name)))
|
||||
(lambda args
|
||||
(lambda (key . parameters)
|
||||
(display (backtrace) (current-error-port))
|
||||
(display "\n" (current-error-port))
|
||||
(simple-format (current-error-port)
|
||||
"error: channel->derivation-file-name: ~A\n"
|
||||
args)
|
||||
|
||||
"error: channel->derivation-file-name: ~A: ~A\n"
|
||||
key parameters))))
|
||||
(lambda args
|
||||
(close-inferior inferior)
|
||||
|
||||
#f))))
|
||||
|
||||
(define (channel->manifest-store-item store channel)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue