We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a06c26 commit 02a01e5Copy full SHA for 02a01e5
src/platform/android/app/src/main/java/net/sourceforge/smallbasic/HttpConnection.java
@@ -38,7 +38,7 @@ public String invoke() {
38
result = buildError("timeout");
39
}
40
} catch (InterruptedException e) {
41
- result = ERROR_PREFIX + e + ERROR_POSTFIX;
+ result = buildError(e.toString());
42
43
return result;
44
@@ -60,7 +60,7 @@ public void run() {
60
if (responseCode == HttpURLConnection.HTTP_OK) {
61
result = getText(conn.getInputStream());
62
} else if (responseCode >= HttpURLConnection.HTTP_BAD_REQUEST && responseCode < HttpURLConnection.HTTP_INTERNAL_ERROR) {
63
- result = buildError(getText(conn.getErrorStream()));
+ result = buildError(getText(conn.getErrorStream()));
64
} else {
65
result = buildError(String.valueOf(responseCode));
66
0 commit comments