diff --git a/gateway/html/shared/notification-bell.js b/gateway/html/shared/notification-bell.js index ea4129a..2967653 100644 --- a/gateway/html/shared/notification-bell.js +++ b/gateway/html/shared/notification-bell.js @@ -174,7 +174,10 @@ list.innerHTML = '
로딩 중...
'; _authFetch(API_BASE + '/unread') - .then(function (r) { return r.json(); }) + .then(function (r) { + if (!r.ok) throw new Error(r.status); + return r.json(); + }) .then(function (data) { if (!data.success || !data.data || data.data.length === 0) { list.innerHTML = '
새 알림이 없습니다
'; @@ -217,7 +220,7 @@ }); }) .catch(function () { - list.innerHTML = '
알림을 불러올 수 없습니다
'; + list.innerHTML = '
잠시 후 다시 시도해주세요
'; }); }