diff --git a/modules/examiner/jsx/examinerIndex.js b/modules/examiner/jsx/examinerIndex.js index bfba2b300d7..8a916f225c5 100644 --- a/modules/examiner/jsx/examinerIndex.js +++ b/modules/examiner/jsx/examinerIndex.js @@ -123,8 +123,8 @@ class ExaminerIndex extends Component { } }); } else { - resp.text().then((message) => { - swal.fire('Error!', message, 'error'); + resp.json().then((message) => { + swal.fire('Error!', message.error, 'error'); }); } })