Carddav: improve error logging on photo update failure

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1258 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-07-23 15:58:13 +00:00
parent e6f7878685
commit 6be6e7c2f6
1 changed files with 1 additions and 1 deletions

View File

@ -665,7 +665,7 @@ public class DavExchangeSession extends ExchangeSession {
try {
status = httpClient.executeMethod(putmethod);
if (status != HttpStatus.SC_OK && status != HttpStatus.SC_CREATED) {
throw new IOException("Unable to update contact picture");
throw new IOException("Unable to update contact picture: "+status+ ' ' +putmethod.getStatusLine());
}
} catch (IOException e) {
LOGGER.error("Error in contact photo create or update", e);