Skip to content

Commit

Permalink
Fix error not being shown in error box (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakhinvadim authored Oct 21, 2020
1 parent bf5250d commit 0889c3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/admin/controls/synchronize.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0889c3f

Please sign in to comment.