don't log error code when it is not relevant