diff --git a/templates/exam_overview_js.html b/templates/exam_overview_js.html
index a9120a9e..75e787a3 100644
--- a/templates/exam_overview_js.html
+++ b/templates/exam_overview_js.html
@@ -24,7 +24,7 @@
})
.fail(function (data) {
console.log(data)
- toastr.error(`Failed to change state\n${data.status}`);
+ toastr.error(`Failed to change state
${data.responseJSON.status}`);
})
.always(function () {
console.log('[Done]');