revert error message helper