X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fwww-eztv.git;a=blobdiff_plain;f=lib%2FWWW%2FEZTV%2FUA.pm;fp=lib%2FWWW%2FEZTV%2FUA.pm;h=1b80ffcebe7b33c572dcac2fdd67f00e4266d089;hp=41df6091518f3e95f926f0014ccc2ff9cba84677;hb=70fdbac1e0fae8b661eaf75867fd9f436ba0547f;hpb=072be1f99c866dce6919f6d8aead73bbdabbddf6 diff --git a/lib/WWW/EZTV/UA.pm b/lib/WWW/EZTV/UA.pm index 41df609..1b80ffc 100644 --- a/lib/WWW/EZTV/UA.pm +++ b/lib/WWW/EZTV/UA.pm @@ -18,7 +18,7 @@ sub get_response { else { my ($err, $code) = $tx->error; my $message = shift || 'User agent error'; - die "$message: $err ($code)"; + confess sprintf('%s: %s (%s)', $message, $err, $code||'no error code'); } }