We don't need extra linefeeds before the `)' in the stderr
output, and the context from croak() is bogus anyways since we
get error messages from an external process.
use PublicInbox::XhcMsetIterator;
use PublicInbox::Syscall qw(EPOLLIN EPOLLONESHOT);
use Fcntl qw(SEEK_SET);
-use Carp qw(croak);
use PublicInbox::Git qw(git_quote);
sub die_err ($@) {
seek $err_rw, 0, SEEK_SET;
my $s = read_all $err_rw;
chomp $s;
- croak $s, @msg;
+ die $s, @msg, "\n";
}
sub event_step {
scalar(@it) == $size or die_err $self,
'got ', scalar(@it), ', expected mset.size=', $size;
};
- my $err = $@;
+ chomp(my $err = $@);
$self->close;
eval { $cb->(@args, $self, $err) };
warn "E: $@\n" if $@;