Files
klz-cables.com/.pnpm-store/v10/files/85/16a20375db655b309f76b17253fde285306b33bf7b9b737e2316fc5d28ce899b5e35a05fbde8ba501c498ef828fc371ff4b64f48ec014da832f8f112e9e693
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

29 lines
722 B
Plaintext

/**
* Get a list of possible event messages from a Sentry event.
*/
function getPossibleEventMessages(event) {
const possibleMessages = [];
if (event.message) {
possibleMessages.push(event.message);
}
try {
// @ts-expect-error Try catching to save bundle size
const lastException = event.exception.values[event.exception.values.length - 1];
if (lastException?.value) {
possibleMessages.push(lastException.value);
if (lastException.type) {
possibleMessages.push(`${lastException.type}: ${lastException.value}`);
}
}
} catch {
// ignore errors here
}
return possibleMessages;
}
export { getPossibleEventMessages };
//# sourceMappingURL=eventUtils.js.map