Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Another stack trace implementation [1] that allows you to write:

  some-command || fail "message"
to produce a stack trace and exit the shell in case of non-zero exit status from some-command, or write

  some-command || softfail "message" || return $?
in case you want to produce a stack trace and return from the function.

[1]: https://github.com/runag/runag/blob/main/lib/fail.sh



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: