summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index b4f09ce7d..403e7eefa 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -1078,6 +1078,8 @@ sub msg { ## no critic
$msg = $msg{'en'}{$name};
}
else {
+ ## Allow for non-matches in certain rare cases
+ return '' if $opt{nomsgok};
my $line = (caller)[2];
die qq{Invalid message "$name" from line $line\n};
}