tl; dr this probably can't be done in a useful way (high signal-to-noise ratio), would be very difficult to do, and is probably not a good idea. While I like the idea, I don't think it's feasible.
This is awfully hard to implement because English is a difficult language to parse.
What about these examples?
I get an error and it doesn't work.
should probably be blocked.
I get an error in my log file "invalid syntax something."
Maybe; depends on the something
and other details.
I get an error 3 times, but the fourth time it works.
Close; depends on what other information is provided.
I get an error 1064 syntax error.
Very close; it would be nice to know the real error message, but a MySQL 1064 is a familiar, specific kind of problem.
I get an error.
ERROR 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS
Now we're talking. The user said, I get an error.
, but then gave the full error details.
I get an error.
, followed by huge amounts of code and text, with the specific error message buried somewhere down the post, probably not formatted correctly. As Mr Lister pointed out in the comments, this is very common, but the proposed feature would (1) have a hard time detecting this and (2) likely do little to help with readability of this type of post.
Figuring out how to parse the many possibilities is a pretty complex task. Figuring out when the user used a phrase like "an error" without elaborating is a natural-language processing problem, and a really hard one.
This proposed feature seems very likely to result in false positives. On the other hand, we have downvotes, close votes, and comments at our disposal to handle and clarify the posts in question already. On top of that, it would be one more thing we're asking users to read before posting. As evidenced by the moderator flag and review queues, the most problematic posts are by people who clearly didn't read and understand most of the instructions presented to them, anyway.
In short, this is complicated to implement and, in my opinion, not realistically likely to solve (or significantly improve) the problem that it attempts to address.