Skip to content

Better error message when building #39

@demanuel

Description

@demanuel

Hi.

I'm behind a transparent proxy and i forgot to set the environment variable http_proxy. This was the error message:

===> Testing: LWP::Simple:ver<0.106>:auth<github:perl6>
[LWP::Simple] Use of Nil in string context
[LWP::Simple]   in block  at /home/demanuel/.zef/store/perl6-lwp-simple.git/eb48ab98b3422b40cd0def8faa882abb9184c265/lib/LWP/Simple.pm (LWP::Simple) line 232
[LWP::Simple] Use of uninitialized value of type Any in numeric context
[LWP::Simple]   in block  at /home/demanuel/.zef/store/perl6-lwp-simple.git/eb48ab98b3422b40cd0def8faa882abb9184c265/lib/LWP/Simple.pm (LWP::Simple) line 234
[LWP::Simple] Failed to resolve host name '' with family 0.
[LWP::Simple] Error: Name or service not known
[LWP::Simple]   in method make_request at /home/demanuel/.zef/store/perl6-lwp-simple.git/eb48ab98b3422b40cd0def8faa882abb9184c265/lib/LWP/Simple.pm (LWP::Simple) line 234
[LWP::Simple]   in method request_shell at /home/demanuel/.zef/store/perl6-lwp-simple.git/eb48ab98b3422b40cd0def8faa882abb9184c265/lib/LWP/Simple.pm (LWP::Simple) line 84
[LWP::Simple]   in method get at /home/demanuel/.zef/store/perl6-lwp-simple.git/eb48ab98b3422b40cd0def8faa882abb9184c265/lib/LWP/Simple.pm (LWP::Simple) line 32
[LWP::Simple]   in block <unit> at t/basic-auth.t line 38
[LWP::Simple] # You planned 9 tests, but ran 8

I believe this can be improved. I had to look to the source code to see what was the issue :-)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions