Subject: | More diagnostics on URI::Fetch failure |
If URI::Fetch->fetch fails, then currently there's no additional diagnostics:
Carp::croak "URI::Fetch failed: $url" unless ref $res;
It would be nice if the error message of URI::Fetch was displayed to the user, e.g. using (untested):
Carp::croak "URI::Fetch failed for $url: " . URI::Fetch->errstr unless ref $res;
Regards,
Slaven