Open rugk opened 2 months ago
Thanks for the suggestion, I will look whether the API does return the error too.
Thanks yeah, maybe you can also show the stock amount even for "stock fulfillment checking"-disabled ingredients to prevent this error from occurring initially. (Especially, as – as indicated upstream – the error message, even if displayed, does not mention the bad ingredient, which can lead to painful debugging of your recipe :sweat_smile:) Everything else would AFAIK need server support/changes in the general handling, as suggested in https://github.com/grocy/grocy/issues/2533.
STR
See https://github.com/grocy/grocy/issues/2533 TL;DR: Make a recipe with an ingredient with "stock fulfillment checking" disabled. Not have it in stock.
Then try to consume the recipe from the app.
What happens
https://github.com/patzly/grocy-android/assets/11966684/69f2b06a-94f3-4da4-abdf-3df5ae31019a
Just shows a very generic error:
A server error is shown, but no details. Grocy web, shows this instead:
What should happen
You may at least pass that error message to the user?