about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/TestCommon.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm
index d6e090dd..d506e4b5 100644
--- a/lib/PublicInbox/TestCommon.pm
+++ b/lib/PublicInbox/TestCommon.pm
@@ -494,7 +494,8 @@ sub lei_ok (@) {
                         s!\Q$PWD\E\b!\$PWD!g;
                 }
         }
-        ok(lei(@_), "lei @msg". ($msg ? " ($$msg)" : '')) or diag $lei_err;
+        ok(lei(@_), "lei @msg". ($msg ? " ($$msg)" : '')) or
+                diag "\$?=$? err=$lei_err";
 }
 
 sub json_utf8 () {