about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-09-22 21:13:13 +0000
committerEric Wong <e@80x24.org>2023-09-22 22:39:38 +0000
commitcb06b7a7f4d9d51033fa9455b59167742ebc267a (patch)
tree44a7989c3d897cee12103a52e8bc1af63c3bd91c
parent7ec18629be87df2f3197d7c0a51cfb8201b13176 (diff)
downloadpublic-inbox-cb06b7a7f4d9d51033fa9455b59167742ebc267a.tar.gz
lei blob|rediff: fix usage of lei->fail
lei->fail only takes one message argument, presently;
but it's probably a good idea to change the API...
-rw-r--r--lib/PublicInbox/LeiBlob.pm2
-rw-r--r--lib/PublicInbox/LeiRediff.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiBlob.pm b/lib/PublicInbox/LeiBlob.pm
index 1692289c..5fc6d902 100644
--- a/lib/PublicInbox/LeiBlob.pm
+++ b/lib/PublicInbox/LeiBlob.pm
@@ -158,7 +158,7 @@ sub lei_blob {
         if ($lxs->remotes) {
                 require PublicInbox::LeiRemote;
                 $lei->{curl} //= which('curl') or return
-                        $lei->fail('curl needed for', $lxs->remotes);
+                        $lei->fail('curl needed for '.join(', ',$lxs->remotes));
                 $lei->_lei_store(1)->write_prepare($lei);
         }
         require PublicInbox::SolverGit;
diff --git a/lib/PublicInbox/LeiRediff.pm b/lib/PublicInbox/LeiRediff.pm
index c312d90f..9cf95c08 100644
--- a/lib/PublicInbox/LeiRediff.pm
+++ b/lib/PublicInbox/LeiRediff.pm
@@ -268,7 +268,7 @@ sub lei_rediff {
         if ($lxs->remotes) {
                 require PublicInbox::LeiRemote;
                 $lei->{curl} //= which('curl') or return
-                        $lei->fail('curl needed for', $lxs->remotes);
+                        $lei->fail('curl needed for '.join(', ',$lxs->remotes));
         }
         $lei->ale->refresh_externals($lxs, $lei);
         my $self = bless {