summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-xinclude/err.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/err.sh b/include/err.sh
new file mode 100755
index 00000000..ea46ccb3
--- /dev/null
+++ b/include/err.sh
@@ -0,0 +1,8 @@
+# Copyright (c) 2022, 2023 Leah Rowe <info@minifree.org>
+# SPDX-License-Identifier: MIT
+
+err()
+{
+ printf "ERROR %s: %s\n" "${0}" "${1}" 1>&2
+ exit 1
+}