diff options
author | Greg Sabino Mullane | 2011-06-21 11:22:30 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-06-21 11:22:30 +0000 |
commit | 9659e4e9d99569cd7cda4fb835a671509f3609d9 (patch) | |
tree | c21f8ca503144d6c4a7b7305b2c3beddce01064c /check_postgres.pl | |
parent | 0475205a2e18d63f591e76447cc2009ed4b641d0 (diff) |
Allow msg() non-matches to sometimes be non-fatal.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 2 |
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}; } |