Log error strings in the error/status checking macros

Error strings are much more meaningful for debugging than the raw enum values.