fix: improve API error messaging (#58)
Display the relevant error message more prominently, and fall back to a default message if there is none, or if the message is HTML. Also use the values defined in frontend config for site name + support URL, rather than relying on proctored exam settings.
Showing
- src/exam/ExamAPIError.jsx 37 additions, 52 deletionssrc/exam/ExamAPIError.jsx
- src/exam/ExamAPIError.test.jsx 55 additions, 38 deletionssrc/exam/ExamAPIError.test.jsx
- src/exam/__snapshots__/ExamAPIError.test.jsx.snap 126 additions, 0 deletionssrc/exam/__snapshots__/ExamAPIError.test.jsx.snap
- src/exam/messages.js 14 additions, 0 deletionssrc/exam/messages.js
Loading
Please register or sign in to comment