Files
klz-cables.com/.pnpm-store/v10/files/0c/9939ab4dcd1b6e5e9e23aca1eec956a373bbba84ab8c9260518fee20a373fb3dd039d3ca787e14a3a67c8f249d028f282d0380c96affa5a97b9187d81c66cd
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

21 lines
565 B
Plaintext

import { status as httpStatus } from 'http-status';
/**
* Determines if an error should be shown to the user.
*/ export function isErrorPublic(error, config) {
const payloadError = error;
if (config.debug) {
return true;
}
if (payloadError.isPublic === true) {
return true;
}
if (payloadError.isPublic === false) {
return false;
}
if (payloadError.status && payloadError.status !== httpStatus.INTERNAL_SERVER_ERROR) {
return true;
}
return false;
}
//# sourceMappingURL=isErrorPublic.js.map