In perl.git, the branch ilmari/post-5.26/o-error-message-rt131062 has been 
created

<http://perl5.git.perl.org/perl.git/commitdiff/56c5bc661c38099f749fabdeed12cb80980e1ca4?hp=0000000000000000000000000000000000000000>

        at  56c5bc661c38099f749fabdeed12cb80980e1ca4 (commit)

- Log -----------------------------------------------------------------
commit 56c5bc661c38099f749fabdeed12cb80980e1ca4
Author: Dagfinn Ilmari MannsÃ¥ker <[email protected]>
Date:   Sun Mar 26 15:26:22 2017 +0200

    Improve error message for bogus -MO=… arguments
    
    Commit 7a9b44b9 expanded the scope of the string eval that loads the
    B::* backend module, but didn't move the $@ check and croak to outside
    it.  Restore it and further improve the error message.
    
    Before:
    
        $ perl -MO=Concise=-debug -e1
        syntax error at (eval 2) line 18, near "="
        BEGIN failed--compilation aborted.
    
    After:
    
        $ ./perl -Ilib -MO=Concise=-debug -e1
        Loading compiler backend 'B::Concise=-debug' failed: syntax error at 
(eval 2) line 18, near "="
         at -e line 0.
        BEGIN failed--compilation aborted.
-----------------------------------------------------------------------

--
Perl5 Master Repository

Reply via email to