X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/6e469559c558d87d7e3cc81fc024b597e00be313..c6a3abf05b4eb41a569fe2ea865f3e0ede6432d9:/src/com/owncloud/android/operations/RemoteOperationResult.java diff --git a/src/com/owncloud/android/operations/RemoteOperationResult.java b/src/com/owncloud/android/operations/RemoteOperationResult.java index d1d39f63..b371fb81 100644 --- a/src/com/owncloud/android/operations/RemoteOperationResult.java +++ b/src/com/owncloud/android/operations/RemoteOperationResult.java @@ -66,7 +66,9 @@ public class RemoteOperationResult implements Serializable { SSL_RECOVERABLE_PEER_UNVERIFIED, BAD_OC_VERSION, STORAGE_ERROR_MOVING_FROM_TMP, - CANCELLED + CANCELLED, + INVALID_LOCAL_FILE_NAME, + INVALID_OVERWRITE } private boolean mSuccess = false; @@ -206,11 +208,14 @@ public class RemoteOperationResult implements Serializable { } else if (mException instanceof UnknownHostException) { return "Unknown host exception"; - } else if (mException instanceof SSLException) { - if (mCode == ResultCode.SSL_RECOVERABLE_PEER_UNVERIFIED) + } else if (mException instanceof CertificateCombinedException) { + if (((CertificateCombinedException) mException).isRecoverable()) return "SSL recoverable exception"; else return "SSL exception"; + + } else if (mException instanceof SSLException) { + return "SSL exception"; } else if (mException instanceof DavException) { return "Unexpected WebDAV exception";