Skip to content

Commit

Permalink
Just report the API error message, and improve error modal layout
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Nov 4, 2023
1 parent c69baec commit 04030fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/de/blau/android/Logic.java
Original file line number Diff line number Diff line change
Expand Up @@ -4120,6 +4120,7 @@ protected UploadResult doInBackground(Void params) {
break;
case HttpStatusCodes.HTTP_TOO_MANY_REQUESTS:
result.setError(ErrorCodes.UPLOAD_LIMIT_EXCEEDED);
result.setMessage(e.getMessage());
break;
default:
Log.e(DEBUG_TAG, METHOD_UPLOAD, e);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/blau/android/dialogs/ErrorAlert.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public AppCompatDialog onCreateDialog(Bundle savedInstanceState) {
if (messageId != 0) {
String message = getString(messageId);
if (originalMessage != null) {
message = message + "<p/>" + originalMessage;
message = message + "<p/><i>" + originalMessage + "</i>";
}
builder.setMessage(Util.fromHtml(message));
}
Expand Down

0 comments on commit 04030fc

Please sign in to comment.