summaryrefslogtreecommitdiff
path: root/libremessages
diff options
context:
space:
mode:
Diffstat (limited to 'libremessages')
-rwxr-xr-xlibremessages6
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
+}