]> Sergey Matveev's repositories - public-inbox.git/commitdiff
test_common: print diagnostic for missing dependencies
authorEric Wong <e@80x24.org>
Thu, 9 Sep 2021 21:34:36 +0000 (21:34 +0000)
committerEric Wong <e@80x24.org>
Fri, 10 Sep 2021 03:06:15 +0000 (03:06 +0000)
The "#" prefix should prevent it from being too alarming if
a dependency is expected to be missing, but still useful if a
dependency is misconfigured.

lib/PublicInbox/TestCommon.pm

index 83dcf650d9c915e5357725b6bb23fe8f5e259756..2e3e9eccce7980d424368e3337ee83bb0c3a4e54 100644 (file)
@@ -144,6 +144,7 @@ sub require_mods {
                        eval "require $mod";
                }
                if ($@) {
+                       diag "require $mod: $@";
                        push @need, $mod;
                } elsif ($mod eq 'IO::Socket::SSL' &&
                        # old versions of IO::Socket::SSL aren't supported