From 3ba0028804c50b75b1854d0c2bf637ebce0aa8b1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 21 Jun 2020 00:21:32 +0000 Subject: init: refer to inboxes as "inbox" or "inboxes" in errors Since V2 uses multiple git repositories, stop using the word "repo" when referring to inboxes. --- script/public-inbox-init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'script/public-inbox-init') diff --git a/script/public-inbox-init b/script/public-inbox-init index 00147db5..e8dcf4fc 100755 --- a/script/public-inbox-init +++ b/script/public-inbox-init @@ -121,20 +121,20 @@ if (-f "$inboxdir/inbox.lock") { if (!defined $version) { $version = 2; } elsif ($version != 2) { - die "$inboxdir is a -V2 repo, -V$version specified\n" + die "$inboxdir is a -V2 inbox, -V$version specified\n" } } elsif (-d "$inboxdir/objects") { if (!defined $version) { $version = 1; } elsif ($version != 1) { - die "$inboxdir is a -V1 repo, -V$version specified\n" + die "$inboxdir is a -V1 inbox, -V$version specified\n" } } $version = 1 unless defined $version; if ($version == 1 && defined $skip_epoch) { - die "--skip-epoch is only supported for -V2 repos\n"; + die "--skip-epoch is only supported for -V2 inboxes\n"; } my $ibx = PublicInbox::Inbox->new({ -- cgit v1.2.3-24-ge0c7