This commit is contained in:
@@ -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 {}; });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user