Humans are not always the consumer of error output. Distinct error codes simplify parsing and eliminate ambiguity.
It also makes it easier for developers look up a specific error in the documentation, assuming it's been documented.
It also makes it easier for developers look up a specific error in the documentation, assuming it's been documented.
If we where talking 20 years ago I might agree, but I really can’t see the argument with todays tooling.
Also many times the error message is interpolated with your specific details like
"Syntax error at line 123 in file /home/user/myfile , symbol X is not allowed here" this is a silly example but often enough when i google this errors I have to first strip out my data from them.