Skip to content

Commit 11f08f6

Browse files
committed
1 parent 665a0eb commit 11f08f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/src/main/java/com/loopj/android/http/AsyncHttpResponseHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Thr
315315
onFailure(statusCode, headers, error, response);
316316
} catch (UnsupportedEncodingException e) {
317317
Log.e(LOG_TAG, e.toString());
318-
onFailure(statusCode, headers, e, null);
318+
onFailure(statusCode, headers, error, null);
319319
}
320320
}
321321

library/src/main/java/com/loopj/android/http/TextHttpResponseHandler.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Thr
107107
String response = responseBody == null ? null : new String(responseBody, getCharset());
108108
onFailure(statusCode, headers, response, error);
109109
} catch (UnsupportedEncodingException e) {
110-
Log.v(LOG_TAG, "String encoding failed, calling onFailure(int, Header[], String, Throwable)");
111-
onFailure(0, headers, (String) null, e);
110+
Log.e(LOG_TAG, "String encoding failed, calling onFailure(int, Header[], String, Throwable)", e);
111+
onFailure(0, headers, (String) null, error);
112112
}
113113
}
114114

0 commit comments

Comments
 (0)