Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Color for Error Messages

by choroba (Cardinal)
on Mar 18, 2022 at 16:42 UTC ( [id://11142232]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11142232]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-23 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found