pass error codes to error string