Skip to content

Commit

Permalink
fix(android): return more httpclient errors to Ti (#13947)
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Nov 19, 2023
1 parent 4b01bc0 commit fafdde6
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -1371,7 +1371,11 @@ public void progress(int progress)

} catch (IOException e) {
if (!aborted) {
throw e;
KrollDict data = new KrollDict();
data.putCodeAndMessage((getStatus() >= 400) ? getStatus() : TiC.ERROR_CODE_UNKNOWN,
e.getMessage());
dispatchCallback(TiC.PROPERTY_ONERROR, data);
return;
}
} finally {
if (client != null) {
Expand Down

0 comments on commit fafdde6

Please sign in to comment.