aboutsummaryrefslogtreecommitdiff
path: root/src/static/scripts/admin.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/scripts/admin.js')
-rw-r--r--src/static/scripts/admin.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static/scripts/admin.js b/src/static/scripts/admin.js
index bc06c0a3..b194a91d 100644
--- a/src/static/scripts/admin.js
+++ b/src/static/scripts/admin.js
@@ -49,8 +49,8 @@ function _post(url, successMsg, errMsg, body, reload_page = true) {
}).then(respText => {
try {
const respJson = JSON.parse(respText);
- if (respJson.ErrorModel && respJson.ErrorModel.Message) {
- return respJson.ErrorModel.Message;
+ if (respJson.errorModel && respJson.errorModel.message) {
+ return respJson.errorModel.message;
} else {
return Promise.reject({ body: `${respStatus} - ${respStatusText}\n\nUnknown error`, error: true });
}