mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 19:23:24 +02:00
lib.sh: Provide error message where none is given
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -196,6 +196,7 @@ err()
|
|||||||
|
|
||||||
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 || :
|
[ $# -lt 1 ] || printf "ERROR %s: %s\n" "$0" "$1" 1>&2 || :
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user