Make UI error box display API error messages

Description

Please see MW-177. It seems as though a miscellany of error conditions can lead to the generic error message that OpenLMIS "Could not initiate LMIS Form." In the reference-distribution of OpenLMIS, the analogous message is something like "Could not initiate R&R."

In either event, it would be helpful to give users more specific information about what's wrong and why the R&R ("LMIS Form") can't be initiated.

Acceptance Criteria

  • Every time a back-end API error bubbles up to the UI into a red error message box, we should have part of that error box show the detailed API error string so users don't have to open the Dev Tools/Console to see the details.

Activity

Show:
Lucyna Laska
July 14, 2017, 12:32 PM

Okay, now the error messages are displayed on the modals. Btw, the problem described in the ticket does not occur anymore.

Nikodem Graczewski
July 19, 2017, 2:26 PM

, Displaying the same modal twice does not seem to work.

Nikodem Graczewski
July 20, 2017, 1:12 PM

The bug found during showcase was caused by changes made in (https://review.openlmis.org/cru/FEOLMIS-1713).

Paweł Gesek
July 20, 2017, 2:24 PM

can you give me the repro steps? I am not sure what "Displaying the same modal twice means". Should I do the same error twice? If that's the case it works, since I did this plenty of times in stock management today.

Paweł Albecki
July 26, 2017, 9:02 AM

Issue with unable to open modal one after another does not occur anymore. I tried to reproduce this by causing backend error -> modal is shown -> I close modal -> repeat -> modal is shown.

Done

Assignee

Nikodem Graczewski

Reporter

Ben Leibert

Labels

None

Story Points

3

Time tracking

0m

Time remaining

0m

Components

Sprint

None

Fix versions

Priority

Major