Commit daea845e authored by m.bottaccio@bopen.eu's avatar m.bottaccio@bopen.eu
Browse files

Improve error message for unsupported products in cart

parent f5b10e0a
......@@ -267,7 +267,7 @@ class ProductResource(ReadOnlyResource):
)
except Exception as e:
LOGGER.exception(e)
raise falcon.HTTPBadRequest(title="invalid basket", description=e.args[0])
raise falcon.HTTPBadRequest(title="cart contains products of unsupported or heterogeneous type", description=e.args[0])
user = req.context.get("username", "EPCT")
LOGGER.debug(f"user: {user} - request {req.url} {kwargs}")
LOGGER.debug(f"user: {user} - response status {resp.status}")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment