diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-12 10:46:56 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-12 10:46:56 -0300 |
commit | 5bbd4077065e9a10bab0c709c9e3edb0b7d0fc05 (patch) | |
tree | 5346a58bd85c54d8ada0e1264def1ecab5970f5d /libremessages | |
parent | 0b52c6e030fc60377a4dfc0a4e142bee50b0344e (diff) |
Hopefully fix a horrible bug that caused leaked packages
Also added a few checks
Diffstat (limited to 'libremessages')
-rwxr-xr-x | libremessages | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libremessages b/libremessages index 9fbbc2b..0c6ded1 100755 --- a/libremessages +++ b/libremessages @@ -75,3 +75,9 @@ error() { printf "${RED}==> $(gettext "ERROR:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2 } +fatal_error() { + local mesg=$1; shift + error "$mesg" "$@" + + exit 1 +} |