summary refs log tree commit diff
path: root/gnu.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-07-25 17:59:13 +0200
committerLudovic Courtès <ludo@gnu.org>2020-07-25 19:11:36 +0200
commit252a1926bc7d7aa0b39d89a484c0c1b82e945fcd (patch)
tree1a9be616bc28507c7d4d7459d59f817b00c44dc2 /gnu.scm
parent860f3d77495aad0061c4ee9b6de73d6fe9fc40e9 (diff)
downloadguix-252a1926bc7d7aa0b39d89a484c0c1b82e945fcd.tar.gz
diagnostics: Add '&formatted-message'.
This allows 'gettext' to be called on the format string at the site
where the exception is caught (rather than the site where it's thrown).
It also allows for argument highlighting.

* guix/diagnostics.scm (&formatted-message): New condition type.
(check-format-string): New procedure.
(formatted-message): New macro.
* guix/ui.scm (report-load-error): Add clause for 'formatted-message?'.
(warn-about-load-error): Likewise.
(call-with-error-handling): Likewise.
(read/eval): Likewise.
Diffstat (limited to 'gnu.scm')
0 files changed, 0 insertions, 0 deletions