removed alert when an error is thrown