Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translate errors to PromQL errors by wrapping queryable. (grafana#2941)
* Initial version. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Move PromQL API error translation to querier registration. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Remove extra use of promql.ErrStorage. All unknown errors are translated to promql.ErrStorage already at API level of the querier. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Updated CHANGELOG.md entry. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Treat context.Canceled as user error and return 422. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Added test for context.DeadlineExceeded. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
- Loading branch information