diff options
author | Eric Wong <e@80x24.org> | 2021-09-08 19:03:59 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-09 04:50:34 +0000 |
commit | 9b48717ae0b7f7459a2cfc0447cc2854fc59fa01 (patch) | |
tree | 9a2877bf0d50cc5e22c273e537e168d124c923cc /lib/PublicInbox/LeiInput.pm | |
parent | c033dde5f54fa886b5bef5b9d5c13aa8624e8df4 (diff) | |
download | public-inbox-9b48717ae0b7f7459a2cfc0447cc2854fc59fa01.tar.gz |
I just made this mistake running "lei import" myself, so I figure giving a hint makes sense, here.
Diffstat (limited to 'lib/PublicInbox/LeiInput.pm')
-rw-r--r-- | lib/PublicInbox/LeiInput.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiInput.pm b/lib/PublicInbox/LeiInput.pm index cb71e97c..8ce445c8 100644 --- a/lib/PublicInbox/LeiInput.pm +++ b/lib/PublicInbox/LeiInput.pm @@ -276,7 +276,10 @@ sub prepare_inputs { # returns undef on error $may_sync and $input = 'maildir:'. $lei->abs_path($input_path); } else { - return $lei->fail("Unable to handle $input"); + my $m = "Unable to handle $input"; + $input =~ /\A(?:L|kw):/ and + $m .= ", did you mean +$input?"; + return $lei->fail($m); } } elsif ($input =~ /\.(?:eml|patch)\z/i && -f $input) { lc($in_fmt//'eml') eq 'eml' or return $lei->fail(<<""); |