diff --git a/apps/backend/src/routes/product-attributes.ts b/apps/backend/src/routes/product-attributes.ts index 218221c..091bc80 100644 --- a/apps/backend/src/routes/product-attributes.ts +++ b/apps/backend/src/routes/product-attributes.ts @@ -155,6 +155,10 @@ export const productAttributesRoute = new Elysia() if (!definition) return status(404, { message: "Attribute definition not found" }); return localizeAttributeDefinition(definition, lang); + } catch (err: any) { + return status(400, { message: err.message }); + } + }) .get("/products/:id/attributes", async ({ params, query, status }) => { try { const productId = parseId(params.id, "product ID");