From 9659e4e9d99569cd7cda4fb835a671509f3609d9 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 21 Jun 2011 07:22:30 -0400 Subject: [PATCH] Allow msg() non-matches to sometimes be non-fatal. --- check_postgres.pl | 2 ++ 1 file changed, 2 insertions(+) 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}; } -- 2.30.2