diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2015-05-25 22:52:41 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2015-05-25 22:52:41 +0200 |
| commit | db030303b820297da23f8ce7101be88427eeef8d (patch) | |
| tree | 471ad5271d7c026ebf5b698947a43c6d2df2e7c6 /doc | |
| parent | 5f1087c48144e15d9e37d23b559017f9d7e326cd (diff) | |
guix system: Add '--on-error'.
* guix/ui.scm (load*): Add #:on-error parameter.
[tag, error-string]: New variables.
Wrap 'load' call in 'call-with-prompt'. Pass TAG to 'make-stack'. Honor
ON-ERROR after 'report-load-error' call.
(report-load-error): Change to not exit on error. Make private.
* guix/scripts/system.scm (show-help, %options): Add --on-error.
(guix-system): Use 'load*' and pass it #:on-error.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix.texi | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index a4aa1b67fab..a97436cc0c1 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -5995,6 +5995,25 @@ For the @code{vm-image} and @code{disk-image} actions, create an image | |||
| 5995 | of the given @var{size}. @var{size} may be a number of bytes, or it may | 5995 | of the given @var{size}. @var{size} may be a number of bytes, or it may |
| 5996 | include a unit as a suffix (@pxref{Block size, size specifications,, | 5996 | include a unit as a suffix (@pxref{Block size, size specifications,, |
| 5997 | coreutils, GNU Coreutils}). | 5997 | coreutils, GNU Coreutils}). |
| 5998 | |||
| 5999 | @item --on-error=@var{strategy} | ||
| 6000 | Apply @var{strategy} when an error occurs when reading @var{file}. | ||
| 6001 | @var{strategy} may be one of the following: | ||
| 6002 | |||
| 6003 | @table @code | ||
| 6004 | @item nothing-special | ||
| 6005 | Report the error concisely and exit. This is the default strategy. | ||
| 6006 | |||
| 6007 | @item backtrace | ||
| 6008 | Likewise, but also display a backtrace. | ||
| 6009 | |||
| 6010 | @item debug | ||
| 6011 | Report the error and enter Guile's debugger. From there, you can run | ||
| 6012 | commands such as @code{,bt} to get a backtrace, @code{,locals} to | ||
| 6013 | display local variable values, and more generally inspect the program's | ||
| 6014 | state. @xref{Debug Commands,,, guile, GNU Guile Reference Manual}, for | ||
| 6015 | a list of available debugging commands. | ||
| 6016 | @end table | ||
| 5998 | @end table | 6017 | @end table |
| 5999 | 6018 | ||
| 6000 | Note that all the actions above, except @code{build} and @code{init}, | 6019 | Note that all the actions above, except @code{build} and @code{init}, |
