Revision 12815
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
522 | 522 |
|
523 | 523 |
log_info() { symbol=: log_custom "$@"; } |
524 | 524 |
|
525 |
log_hint!() { format=7 log_info " $1 "; } |
|
526 |
|
|
525 | 527 |
log_hint() # usage: cmd || [benign_error=1] log_hint msg [|| handle error] |
526 | 528 |
# msg only displayed if not benign error |
527 |
{ kw_params benign_error; if test ! "$benign_error"; then log_err "$1"; fi; }
|
|
529 |
{ kw_params benign_error; if test ! "$benign_error"; then log_hint! "$@"; fi; }
|
|
528 | 530 |
|
529 | 531 |
die() # usage: cmd || [type=...] die msg # msg can use $? but not $() |
530 | 532 |
{ save_e; kw_params type; "log_${type:-err}" "$1"; rethrow; } |
Also available in: Unified diff
bugfix: lib/sh/util.sh: log_hint(): use the standard log_fd and log_info() format, not err_fd and log_err() format, for hint messages