Skip to content

Commit 513b348

Browse files
author
Jim Fulton
committed
Cleaned up error message :) and added traceback
1 parent 4bf4a47 commit 513b348

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/com/loopj/android/http/AsyncHttpRequest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ private void makeRequestWithRetries() throws ConnectException {
120120
cause = new IOException("NPE in HttpClient" + e.getMessage());
121121
retry = retryHandler.retryRequest(cause, ++executionCount, context);
122122
} catch (Exception e) {
123-
responseHandler.sendFailureMessage(e, "wtf: "+e.toString());
123+
e.printStackTrace();
124+
responseHandler.sendFailureMessage(
125+
e, "Unexpected error: "+e.toString());
124126
return;
125127
}
126128
}

0 commit comments

Comments
 (0)