adding error code into the error message