[지라이슈없음] errorCode에 retDetailCode가 있을 경우 에러코드 노출 방식 변경

This commit is contained in:
hyunwoo93.cha
2025-01-14 00:48:25 +09:00
parent bfeb4c0fa6
commit d7f60212a6

View File

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