[주문결제] return Detail Code 추가
This commit is contained in:
@@ -528,12 +528,12 @@ export const getTimeDifferenceByMilliseconds = (
|
||||
return timeDifference > threshold;
|
||||
};
|
||||
|
||||
export const getErrorMessage = (errorCode, retMsg) => {
|
||||
export const getErrorMessage = (errorCode, retMsg, retDetailCode) => {
|
||||
const group = ERROR_MESSAGES_GROUPS.find((group) =>
|
||||
group.codes.includes(Number(errorCode))
|
||||
);
|
||||
|
||||
const errorPrefix = `[${errorCode}] `;
|
||||
const errorPrefix = retDetailCode ? `[${retDetailCode}] ` : `[${errorCode}] `;
|
||||
|
||||
if (group) {
|
||||
return errorPrefix + group.message;
|
||||
|
||||
Reference in New Issue
Block a user