ui: Adjust SRFI-34 exception handling to Guile 2.9.5.
* guix/ui.scm (report-load-error, warn-about-load-error) (read/eval): Match (or 'srfi-34 '%exception) instead of just 'srfi-34 to match what Guile 2.9.5 does.
This commit is contained in:
parent
7281c8fd7e
commit
7f3bbfaf8e
@ -372,7 +372,7 @@ ARGS is the list of arguments received by the 'throw' handler."
|
||||
(report-error loc (G_ "~a~%") message)))
|
||||
(('unbound-variable _ ...)
|
||||
(report-unbound-variable-error args #:frame frame))
|
||||
(('srfi-34 obj)
|
||||
(((or 'srfi-34 '%exception) obj)
|
||||
(if (message-condition? obj)
|
||||
(report-error (and (error-location? obj)
|
||||
(error-location obj))
|
||||
@ -404,7 +404,7 @@ exiting. ARGS is the list of arguments received by the 'throw' handler."
|
||||
(warning loc (G_ "~a~%") message)))
|
||||
(('unbound-variable _ ...)
|
||||
(report-unbound-variable-error args))
|
||||
(('srfi-34 obj)
|
||||
(((or 'srfi-34 '%exception) obj)
|
||||
(if (message-condition? obj)
|
||||
(warning (G_ "failed to load '~a': ~a~%")
|
||||
file
|
||||
@ -813,7 +813,7 @@ similar."
|
||||
(match args
|
||||
(('syntax-error proc message properties form . rest)
|
||||
(report-error (G_ "syntax error: ~a~%") message))
|
||||
(('srfi-34 obj)
|
||||
(((or 'srfi-34 '%exception) obj)
|
||||
(if (message-condition? obj)
|
||||
(report-error (G_ "~a~%")
|
||||
(gettext (condition-message obj)
|
||||
|
Loading…
Reference in New Issue
Block a user