diff --git a/templates/admin/controls/synchronize.php b/templates/admin/controls/synchronize.php index 6b28c9b..fa20c42 100644 --- a/templates/admin/controls/synchronize.php +++ b/templates/admin/controls/synchronize.php @@ -115,12 +115,13 @@ function showErrors(message) { }; function onError(jqXHR, textStatus, errorThrown) { + var errorMsg; try { errorMsg = JSON.parse(jqXHR.responseText).message; } catch (e) { errorMsg = jqXHR.responseText; - showErrors(errorMsg); } + showErrors(errorMsg); }; function onIndexBatchSuccess(response) {