added error dialog for failure