protect the error