Skip to content

Commit 02a01e5

Browse files
committed
ANDROID: tidy up request implementation
1 parent 8a06c26 commit 02a01e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/android/app/src/main/java/net/sourceforge/smallbasic/HttpConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public String invoke() {
3838
result = buildError("timeout");
3939
}
4040
} catch (InterruptedException e) {
41-
result = ERROR_PREFIX + e + ERROR_POSTFIX;
41+
result = buildError(e.toString());
4242
}
4343
return result;
4444
}
@@ -60,7 +60,7 @@ public void run() {
6060
if (responseCode == HttpURLConnection.HTTP_OK) {
6161
result = getText(conn.getInputStream());
6262
} else if (responseCode >= HttpURLConnection.HTTP_BAD_REQUEST && responseCode < HttpURLConnection.HTTP_INTERNAL_ERROR) {
63-
result = buildError(getText(conn.getErrorStream()));
63+
result = buildError(getText(conn.getErrorStream()));
6464
} else {
6565
result = buildError(String.valueOf(responseCode));
6666
}

0 commit comments

Comments
 (0)