| Summary: | Improve error responses readability | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Maciej Bendkowski <maciej.bendkowski> |
| Component: | Marketplace | Assignee: | Project Inbox <orion.server-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Maciej Bendkowski
Partially fixed with: http://git.eclipse.org/c/orion/org.eclipse.orion.marketplace.git/commit/?id=427ed9a493a7f80b7c353e3b7e9c8cfb9efd0bb3 Mongodb does not provide elegant error responses, thus we require an additional error decoration layer. It the commit above, I've introduced an error rescue abstraction layer, which attempts to parse mongodb responses and craft more readable and useful error messages passed to the client. Future work required here: 1. Support a wider range of error types. 2. Do not list all possible constraint violations, only ones which occurred. Not planning to work on this. |