aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-04-06 17:49:05 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-04-06 17:49:05 +0300
commit4e852c163e5898db9716d5e35024fd0af72ed6d3 (patch)
treece852d3a4708b2c66151bacb06bd5f3b6a91ee3e
parent3f33d0d3f0cdb8cf98a55806d181434e16420439 (diff)
downloadmakeredirect-4e852c163e5898db9716d5e35024fd0af72ed6d3.tar.gz
makeredirect-4e852c163e5898db9716d5e35024fd0af72ed6d3.tar.bz2
Avoid unnecessary warnings from faulty/incomplete modules when producing help output.
* lib/MakeRedirect/Output/help.pm (module_list): Suppress warnings during eval.
-rw-r--r--lib/MakeRedirect/Output/help.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MakeRedirect/Output/help.pm b/lib/MakeRedirect/Output/help.pm
index 0606bb9..ceec309 100644
--- a/lib/MakeRedirect/Output/help.pm
+++ b/lib/MakeRedirect/Output/help.pm
@@ -69,6 +69,7 @@ sub module_list {
if (exists($INC{$filename})) {
()
} else {
+ local $SIG{__WARN__} = sub {};
eval {
require $filename;
};

Return to:

Send suggestions and report system problems to the System administrator.