[지라이슈없음] getErrorMessage errorCode가 null일 경우 노출 안 되도록 처리

This commit is contained in:
hyunwoo93.cha
2025-01-17 13:26:29 +09:00
parent 1e6a3b7015
commit ba5248c611

View File

@@ -547,9 +547,11 @@ export const getErrorMessage = (errorCode, retMsg, retDetailCode) => {
group.codes.includes(Number(errorCode))
);
const errorPrefix = retDetailCode
const errorPrefix = errorCode
? retDetailCode
? `[${errorCode}-${retDetailCode}] `
: `[${errorCode}] `;
: `[${errorCode}] `
: "";
if (group) {
return errorPrefix + group.message;