[PATCH] errormsg: add descriptive macros to replace overloaded error codes