change error message when failed