Subject: | invocation of "getstore" doesn't report underlying error |
Confused about version number...the tarball claims to be 0.20, but
/usr/bin/cpan-outdated has 0.18 internally.
On line 56 of cpan-outdated:
getstore($index_url, $tmpfile->filename) or die "Cannot getstore file";
In my case, I happened to run this on a RFC1918-only machine and hadn't
set up the proxy when I ran the script. The message:
Cannot getstore file ...
left me pretty clueless as to what was going wrong. Running it under
the perl debugger, I discovered that the underlying routines are passing
back information that would have helped me.
I changed line 56 (and maybe 58 similarly for consistency) to:
getstore($index_url, $tmpfile->filename) or die "Cannot getstore
file: $!";
which got me:
Cannot getstore file: Connection timed out ...
Hope this seems reasonable to you.