Project

General

Profile

« Previous | Next » 

Revision 9440

lib/sh/util.sh: inlined log_e() into die_e() because that's the only place it's used

View differences:

lib/sh/util.sh
278 278

  
279 279
log_info() { symbol=: log_custom "$@"; }
280 280

  
281
log_e() # usage: cmd || { save_e; log_e; ...; rethrow; }
282
{ log_err "command exited with error $e"; }
283

  
284 281
die() # usage: cmd || [type=...] die msg
285 282
{ save_e; kw_params type; "log_${type:-err}" "$1"; rethrow; }
286 283

  
287
die_e() { save_e; log_e; rethrow; } # usage: cmd || die_e [|| handle error]
284
die_e() # usage: cmd || die_e [|| handle error]
285
{ save_e; log_err "command exited with error $e"; rethrow; }
288 286

  
289 287

  
290 288
#### functions

Also available in: Unified diff