diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-10 21:39:38 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-10 21:39:38 (GMT) |
commit | 80a67051508b7a2f59e0ded9d1dd4df490d44ec2 (patch) | |
tree | 1ff1415ad56f9d88c5ec6ee16160e775e8b5b238 /Swift/Controllers | |
parent | 54781ce12f7654f8136e645d4ebc5934d90c6bea (diff) | |
download | swift-contrib-80a67051508b7a2f59e0ded9d1dd4df490d44ec2.zip swift-contrib-80a67051508b7a2f59e0ded9d1dd4df490d44ec2.tar.bz2 |
Fixed error handling.
Diffstat (limited to 'Swift/Controllers')
-rw-r--r-- | Swift/Controllers/MainController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp index 6c60783..bc16922 100644 --- a/Swift/Controllers/MainController.cpp +++ b/Swift/Controllers/MainController.cpp @@ -266,7 +266,7 @@ void MainController::performLoginFromCachedCredentials() { void MainController::handleError(const ClientError& error) { String message; switch(error.getType()) { - case ClientError::NoError: assert(false); break; + case ClientError::UnknownError: message = "Unknown Error"; break; case ClientError::DomainNameResolveError: message = "Unable to find server"; break; case ClientError::ConnectionError: message = "Error connecting to server"; break; case ClientError::ConnectionReadError: message = "Error while receiving server data"; break; |