mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
added error tracing
This commit is contained in:
parent
ea681c7f52
commit
611d544531
@ -1,7 +1,19 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
set -o errtrace
|
||||
|
||||
STATUS=development
|
||||
|
||||
error_handler()
|
||||
{
|
||||
ERR_CODE=$?
|
||||
echo "Error $ERR_CODE with command '$BASH_COMMAND' on line ${BASH_LINENO[0]}. Exiting."
|
||||
exit $ERR_CODE
|
||||
|
||||
}
|
||||
|
||||
trap error_handler ERR
|
||||
|
||||
debian_prepare()
|
||||
{
|
||||
echo
|
||||
|
Loading…
Reference in New Issue
Block a user