diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-07-25 17:59:13 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-07-25 19:11:36 +0200 |
commit | 252a1926bc7d7aa0b39d89a484c0c1b82e945fcd (patch) | |
tree | 1a9be616bc28507c7d4d7459d59f817b00c44dc2 /gnu/machine | |
parent | 860f3d77495aad0061c4ee9b6de73d6fe9fc40e9 (diff) | |
download | guix-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/machine')
0 files changed, 0 insertions, 0 deletions