1
0
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:
mr.Shu 2014-02-25 16:47:45 +01:00
parent ea681c7f52
commit 611d544531

View File

@ -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