In SO we get a lot of question on the lines,
I got an error message, HELP!
Those questions, strangely enough, do not include the error message itself, and if they do, they do not include the code the error message refers to. (It actually helped me improve my mind reading skills.)
There are some common phrases involved that I think the SE engine can detect and, at least, give a warning to the user saying that he needs to make sure he has:
- relevant code, with the line causing the error being clearly marked
- the error message
It seems to be affecting mostly new users, so I would probably do the check only on users with a reputation lower than, for example, 1000.