Skip to content

Commit 29cd036

Browse files
committed
2 parents 3ef8638 + 6428bfd commit 29cd036

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/ticket/src/lib/axios/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ instance.interceptors.response.use(
4141

4242
if (error.response?.status === 500) {
4343
// 결제 에러는 공통 alert 미노출
44-
if (error.response?.data.code === ERROR_CODE.PAYMENT) return;
44+
if (error.response?.data.code === ERROR_CODE.PAYMENT) {
45+
console.log(error);
46+
47+
return Promise.reject(error?.response?.data);
48+
}
4549

4650
alert("서버에러가 발생하였습니다. 관리자에게 문의해주세요.");
4751

0 commit comments

Comments
 (0)