Commit fb30cabe authored by Dave Reisner's avatar Dave Reisner Committed by Pierre Schmitz
Browse files

common: Properly forward arguments from die to error



Also allow this function to be called without arguments, in which case,
don't call error at all. Some uses of this function wrongly assumed
that this was already allowed.

Signed-off-by: default avatarDave Reisner <dreisner@archlinux.org>
Signed-off-by: default avatarPierre Schmitz <pierre@archlinux.de>
parent 29e62278
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ trap_exit() {
}

die() {
	error "$*"
	(( $# )) && error "$@"
	cleanup 1
}