Files
klz-cables.com/.pnpm-store/v10/files/10/99a8e475380a692f6ba838adcdafd1120d0385038f8f51eeb2af7da8f2d92bd6f3171e20c675c2e7d310818674014424b82406a2df237246f8a74e3c54b5a9
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

15 lines
443 B
Plaintext

/**
* Format error message with hint if available
*/ export const parseError = (err, msg)=>{
let formattedMsg = `${msg}`;
if (err instanceof Error) {
formattedMsg += ` ${err.message}.`;
// Check if the error has a hint property
if ('hint' in err && typeof err.hint === 'string') {
formattedMsg += ` ${err.hint}.`;
}
}
return formattedMsg;
};
//# sourceMappingURL=parseError.js.map