do not hide errors even with --quiet

This change also fixes the problem that when --quiet is given, an error
will never lead to a non-zero exit status because the error function
returns before it runs die()
This commit is contained in:
Johannes 'josch' Schauer 2020-05-10 13:36:43 +02:00
parent da4de7cfdf
commit af13116336
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -137,9 +137,6 @@ sub warning {
}
sub error {
if ($verbosity_level == 0) {
return;
}
# if error() is called with the string from a previous error() that was
# caught inside an eval(), then the string will have a newline which we
# are stripping here