Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Color for Error Messages

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


in reply to Color for Error Messages

> Of course it might be better to add an error_msg class to the CSS, but I learned to humbly make small steps. :)

I submitted patches to both places where the message is created.

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

Replies are listed 'Best First'.
Re^2: Color for Error Messages
by jdporter (Paladin) on Mar 18, 2022 at 16:41 UTC

    Thanks! Please change strong to span, and error_msg to warning. tia.

      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]
        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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-26 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found