From: David A. Velasco Date: Wed, 25 Jul 2012 11:29:14 +0000 (+0200) Subject: Updated logging for login ;) X-Git-Tag: oc-android-1.4.3~239 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/d8e29ce30632d71d560fe7640307c37fb0699be6 Updated logging for login ;) --- diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 8121b858..5983bc0d 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -18,7 +18,7 @@ --> + android:versionName="0.1.181B" xmlns:android="http://schemas.android.com/apk/res/android"> diff --git a/src/eu/alefzero/webdav/WebdavClient.java b/src/eu/alefzero/webdav/WebdavClient.java index 1af39b4c..503685a1 100644 --- a/src/eu/alefzero/webdav/WebdavClient.java +++ b/src/eu/alefzero/webdav/WebdavClient.java @@ -264,8 +264,12 @@ public class WebdavClient extends HttpClient { HeadMethod head = new HeadMethod(uri.toString()); try { returnCode = client.executeMethod(head); + } catch (HttpException e) { + Log.e(TAG, "HTTP exception trying to login at " + uri.getEncodedPath(), e); + } catch (IOException e) { + Log.e(TAG, "I/O exception trying to login at " + uri.getEncodedPath(), e); } catch (Exception e) { - Log.e(TAG, "Error: " + e.getMessage()); + Log.e(TAG, "Unexpected exception trying to login at " + uri.getEncodedPath(), e); } return returnCode; }