in reply to Re^2: Color for Error Messages
in thread Color for Error Messages

I'm not sure it's a warning. It blocks publishing the node, it's an error.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^4: Color for Error Messages
by LanX (Saint) on Mar 18, 2022 at 17:03 UTC
    I second this, for me "error" and "warning" are different too.

    edit

    warnings can be ignored, errors not.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      They don't necessarily need separate styles. And this "warning" is presumably serious enough, that making it scream like an error to prevent it being ignored is, I think, something you want.

      So there is an extant style class, error, used in a few places. But again - we don't have any styling for it currently in the themes. Someone should submit a patch to Common Theme CSS.

      Once that patch is applied, giving us actual styling for the error and warning classes, then someone should go through the code and clean up places where styling is being set explicitly, for example:

      <span class="error" style="color: #cc0000;">
      And of course that <strong> stuff should just be completely replaced.

      I reckon we are the only monastery ever to have a dungeon staffed with 16,000 zombies.
        > clean up places where styling is being set explicitly, for example:
        <span class="error" style="color: #cc0000;">

        pmdevs cant patch modules like Everything/HTML.pm

        so maybe better "warning" ...

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery