APITester 에러 메시지 처리 수정
This commit is contained in:
@@ -776,6 +776,8 @@ class APITester {
|
|||||||
},
|
},
|
||||||
error: function (response, textStatus, errorThrown) {
|
error: function (response, textStatus, errorThrown) {
|
||||||
me.hideLoadingOverlay();
|
me.hideLoadingOverlay();
|
||||||
|
$('.toast-body').text(response.responseJSON.error);
|
||||||
|
$('.toast').toast('show');
|
||||||
},
|
},
|
||||||
complete: function () {
|
complete: function () {
|
||||||
let endTime = new Date().getTime();
|
let endTime = new Date().getTime();
|
||||||
@@ -804,6 +806,8 @@ class APITester {
|
|||||||
},
|
},
|
||||||
error: function (response, textStatus, errorThrown) {
|
error: function (response, textStatus, errorThrown) {
|
||||||
me.hideLoadingOverlay();
|
me.hideLoadingOverlay();
|
||||||
|
$('.toast-body').text(response.responseJSON.error);
|
||||||
|
$('.toast').toast('show');
|
||||||
},
|
},
|
||||||
complete: function () {
|
complete: function () {
|
||||||
me.renderCollections();
|
me.renderCollections();
|
||||||
@@ -826,6 +830,8 @@ class APITester {
|
|||||||
},
|
},
|
||||||
error: function (response, textStatus, errorThrown) {
|
error: function (response, textStatus, errorThrown) {
|
||||||
me.hideLoadingOverlay();
|
me.hideLoadingOverlay();
|
||||||
|
$('.toast-body').text(response.responseJSON.error);
|
||||||
|
$('.toast').toast('show');
|
||||||
},
|
},
|
||||||
complete: function () {
|
complete: function () {
|
||||||
me.loadCollections();
|
me.loadCollections();
|
||||||
@@ -845,6 +851,8 @@ class APITester {
|
|||||||
data: JSON.stringify({id: id, name: name}),
|
data: JSON.stringify({id: id, name: name}),
|
||||||
error: function (response, textStatus, errorThrown) {
|
error: function (response, textStatus, errorThrown) {
|
||||||
me.hideLoadingOverlay();
|
me.hideLoadingOverlay();
|
||||||
|
$('.toast-body').text(response.responseJSON.error);
|
||||||
|
$('.toast').toast('show');
|
||||||
},
|
},
|
||||||
complete: function () {
|
complete: function () {
|
||||||
me.loadCollections();
|
me.loadCollections();
|
||||||
@@ -866,9 +874,9 @@ class APITester {
|
|||||||
success: function () {
|
success: function () {
|
||||||
},
|
},
|
||||||
error: function (response, textStatus, errorThrown) {
|
error: function (response, textStatus, errorThrown) {
|
||||||
let error = response.responseJSON;
|
|
||||||
me.hideLoadingOverlay();
|
me.hideLoadingOverlay();
|
||||||
alert(error.error);
|
$('.toast-body').text(response.responseJSON.error);
|
||||||
|
$('.toast').toast('show');
|
||||||
},
|
},
|
||||||
complete: function () {
|
complete: function () {
|
||||||
me.loadCollections();
|
me.loadCollections();
|
||||||
@@ -1054,6 +1062,7 @@ class APITester {
|
|||||||
success: function (data) {
|
success: function (data) {
|
||||||
},
|
},
|
||||||
error: function (response, textStatus, errorThrown) {
|
error: function (response, textStatus, errorThrown) {
|
||||||
|
$('.toast-body').text(response.responseJSON.error);
|
||||||
me.hideLoadingOverlay();
|
me.hideLoadingOverlay();
|
||||||
},
|
},
|
||||||
complete: function () {
|
complete: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user