Colored error messages

Y

Yu Co

Hi,

Does anyone know whether it is possible to write code which shows me
colored error messages after the validation detects an error?

Regards,
Y
 
E

Eric Hodel

Does anyone know whether it is possible to write code which shows me
colored error messages after the validation detects an error?

I'm pretty sure you have the wrong mailing list, but I have no idea
which one you want.
 
S

Suraj Kurapati

Eric said:
I'm pretty sure you have the wrong mailing list, but I have no idea
which one you want.

OP probably wanted the Ruby on Rails list.

Nevertheless, I've been pondering lately how effective would the act of
colorizing error messages and stack traces be against "scroll blindness"
(when lots of output scrolls by on your terminal and you have to hunt
around for relevant information)?

It might be interesting to try.
 
W

Wilson Bilkovich

OP probably wanted the Ruby on Rails list.

Nevertheless, I've been pondering lately how effective would the act of
colorizing error messages and stack traces be against "scroll blindness"
(when lots of output scrolls by on your terminal and you have to hunt
around for relevant information)?

It might be interesting to try.

In Rubinius, backtraces are instances of the Backtrace class, and they
have methods you can override. Stay tuned, and you could make a
colorized one. Heh
 
D

Daniel Finnie

No, they are possible. According to the other posters, you can just
override the Exception/Backtrace class.

Dan
 
K

KDr2

Yu Co said:
Hi,

Does anyone know whether it is possible to write code which shows me
colored error messages after the validation detects an error?

Regards,
Y

the script "script/server" of rails framework can do this,just read it.

--
For some reasons,my EMail had been changed to "KDr2[#]163.com" now...

NO GNUS is Bad News.

------yours Killy Draw
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,219
Messages
2,571,122
Members
47,743
Latest member
henrywalker

Latest Threads

Top