]> Sergey Matveev's repositories - public-inbox.git/commitdiff
ds: import croak properly
authorEric Wong <e@80x24.org>
Thu, 4 Mar 2021 01:20:39 +0000 (07:20 +0600)
committerEric Wong <e@80x24.org>
Thu, 4 Mar 2021 01:47:10 +0000 (01:47 +0000)
We use croak in several places but weren't importing it :x

lib/PublicInbox/DS.pm

index e5f36bc5436434f006b081592e649b480513d273..15ece4df5bbee68158f0bdfcbb2ad75418bd4064 100644 (file)
@@ -32,7 +32,7 @@ use Scalar::Util qw(blessed);
 use PublicInbox::Syscall qw(:epoll);
 use PublicInbox::Tmpfile;
 use Errno qw(EAGAIN EINVAL);
-use Carp qw(carp);
+use Carp qw(carp croak);
 our @EXPORT_OK = qw(now msg_more dwaitpid add_timer);
 
 my $nextq; # queue for next_tick