Skip to content

Commit

Permalink
Merge pull request #865 from EmilJunker/timeout-error-message
Browse files Browse the repository at this point in the history
Improve re-download error message on timeout
  • Loading branch information
davidhealey authored Oct 3, 2024
2 parents 153686e + 0e156c5 commit b2ca437
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/activities/foods-meals-recipes/js/food-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,9 @@ app.FoodEditor = {
app.FoodEditor.renderNutritionFields(item);
}
} else {
let msg = app.strings.dialogs["no-results"] || "No matching results";
let msg = (result === undefined) ?
app.strings.dialogs["no-response"] || "No response from server" :
app.strings.dialogs["no-results"] || "No matching results";
app.Utils.toast(msg);
}
}
Expand Down

0 comments on commit b2ca437

Please # to comment.