If you program for a nontechnical audience, you find yourself at a high risk that users will not read your carefully worded and enlightening error messages, but just click o
I often display the error in red (when the design allows it).
Red stands for "alert", etc. so it's more often read.