diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-04 16:53:02 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-04 16:53:02 +0100 |
commit | 20c873085874c277ce0e10ec7792bbee94d1c63f (patch) | |
tree | ef87005b96addf67210d4fb9937edbf4211cb3b4 /include | |
parent | 35265731c5b1bfef4bd4e94722c67be8284c7d64 (diff) |
lib.sh: Provide error message where none is given
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/lib.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/lib.sh b/include/lib.sh index c9be740a..71183874 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -196,6 +196,7 @@ err() err_() { + [ $# -lt 1 ] && printf "ERROR (but no error message provided)\n" 1>&2 [ $# -lt 1 ] || printf "ERROR %s: %s\n" "$0" "$1" 1>&2 || : exit 1 } |