요청 관리 에러처리 수정
This commit is contained in:
@@ -438,7 +438,7 @@ class APITester {
|
||||
$('#confirm_delete_modal').modal('show');
|
||||
}
|
||||
|
||||
getApiRequestModel(apiId){
|
||||
getApiRequestModel(apiId) {
|
||||
let foundApi = null;
|
||||
this.collections.forEach(function (collection) {
|
||||
collection.apis.forEach(function (api) {
|
||||
@@ -928,14 +928,11 @@ class APITester {
|
||||
this.hideLoadingOverlay();
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error.name)
|
||||
if (error.name === 'AbortError') {
|
||||
console.log('Fetch aborted');
|
||||
} else {
|
||||
console.log('error3')
|
||||
$('.toast-body').text(error);
|
||||
$('.toast').toast('show');
|
||||
}
|
||||
// if (error.name === 'AbortError') {
|
||||
// console.log('Fetch aborted');
|
||||
// }
|
||||
$('.toast-body').text(error);
|
||||
$('.toast').toast('show');
|
||||
this.hideLoadingOverlay();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user