Permalink
Browse files

carp not croak

  • Loading branch information...
1 parent 749c141 commit 02887b142d7b637405c6aaab0f247500163d93c2 @miyagawa committed Jan 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Twiggy/Server.pm
View
@@ -303,7 +303,7 @@ sub _run_app {
if ( ref $res eq 'ARRAY' ) {
$self->_write_psgi_response($sock, $res);
} elsif ( blessed($res) and $res->isa("AnyEvent::CondVar") ) {
- Carp::croak("Returning AnyEvent condvar is deprecated and will be removed in the next release of Twiggy. Use the streaming callback interface intstead.");
+ Carp::carp("Returning AnyEvent condvar is deprecated and will be removed in the next release of Twiggy. Use the streaming callback interface intstead.");
$res->cb(sub { $self->_write_psgi_response($sock, shift->recv) });
} elsif ( ref $res eq 'CODE' ) {
$res->(

0 comments on commit 02887b1

Please sign in to comment.