# New Ticket Created by  Will Coleda 
# Please include the string:  [perl #131041]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131041 >


Trying to use a non-existing module that matches a distribution name
generates useless diagnostics:


$ perl6 -e 'use zef'
Use of Nil in string context
  in any statement_control at
/Users/coke/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm
line 1
Use of Nil in string context
  in any statement_control at
/Users/coke/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm
line 1
Can not run directory
/Users/coke/.rakudobrew/moar-nom/install/share/perl6/site/sources.

Whereas something that doesn't match at all gives the more useful:

$ perl6 -e 'use ZEf'
===SORRY!===
Could not find ZEf at line 1 in:
    /Users/coke/.perl6
    /Users/coke/.rakudobrew/moar-nom/install/share/perl6/site
    /Users/coke/.rakudobrew/moar-nom/install/share/perl6/vendor
    /Users/coke/.rakudobrew/moar-nom/install/share/perl6
    CompUnit::Repository::AbsolutePath<140657832550000>
    CompUnit::Repository::NQP<140657809866136>
    CompUnit::Repository::Perl5<140657809866176>


-- 
Will "Coke" Coleda

Reply via email to