Safeguard for error messages