관리페이지 데이터 전송 오류 개선
Deploy EG-BIM QA Gateway / deploy (push) Successful in 56s

This commit is contained in:
root
2026-09-21 15:00:39 +09:00
parent 3c10478482
commit a1bfd047e8
3 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -192,7 +192,7 @@
const response = await fetch(target, Object.assign({ credentials: 'include' }, options));
if (!response.ok) {
const errorBody = await response.json().catch(function () { return {}; });
throw new Error(errorBody.message || 'API 요청에 실패했습니다. (' + response.status + ')');
throw new Error(errorBody.message || errorBody.error || 'API 요청에 실패했습니다. (' + response.status + ')');
}
return response.json().catch(function () { return {}; });
}