Fixed with ba20d34 , tests needed.
> On 10 Jul 2016, at 22:58, Zoffix Znet (via RT) <perl6-bugs-follo...@perl.org>
> wrote:
>
> # New Ticket Created by Zoffix Znet
> # Please include the string: [perl #128595]
> # in the subject line of all future correspondence about this issue.
> # <URL: https://rt.perl.org/Ticket/Display.html?id=128595 >
>
>
> If -M includes a module that can't be found, the output is quite LTA. Not
> only is the module message spammed on each output, but trying to exit by
> typing `exit` fails (pressing ^D works).
>
> A suggestion is to abort REPL startup if -M-included modules cannot be found.
>
> zoffix@VirtualBox:~$ perl6 -MFoo
> Couldn't load Rakudo REPL.pm: Could not find Foo at line 1 in:
> /home/zoffix/.perl6
> /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site
> /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/vendor
> /home/zoffix/.rakudobrew/moar-nom/install/share/perl6
> CompUnit::Repository::AbsolutePath<76770752>
> CompUnit::Repository::NQP<68716568>
> CompUnit::Repository::Perl5<68716608>
> Falling back to nqp REPL.
>> exit
> Could not find Foo at line 1 in:
> /home/zoffix/.perl6
> /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site
> /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/vendor
> /home/zoffix/.rakudobrew/moar-nom/install/share/perl6
> CompUnit::Repository::AbsolutePath<76770752>
> CompUnit::Repository::NQP<68716568>
> CompUnit::Repository::Perl5<68716608>
> in any load_module at src/Perl6/World.nqp line 1190
> in any do_pragma_or_load_module at src/Perl6/World.nqp line 1120
> in any loading_and_symbol_setup at src/Perl6/World.nqp line 610
> in any comp_unit at src/Perl6/Grammar.nqp line 1157
> in any TOP at src/Perl6/Grammar.nqp line 460
>
>>