Add view name to queryUI error
This commit is contained in:
parent
ad475be4f7
commit
4eda072af4
|
@ -23,7 +23,7 @@ export function ensureQueryUISet(viewArg: Readonly<ViewV2>): ViewV2 {
|
||||||
// So despite the type saying that `view.query` is a LegacyFilter[] |
|
// So despite the type saying that `view.query` is a LegacyFilter[] |
|
||||||
// SearchFilters, it will never be a SearchFilters when a `view.queryUI`
|
// SearchFilters, it will never be a SearchFilters when a `view.queryUI`
|
||||||
// is specified, making it "safe" to throw an error here.
|
// is specified, making it "safe" to throw an error here.
|
||||||
throw new HTTPError("view is missing queryUI field", 400)
|
throw new HTTPError(`View ${view.name} is missing queryUI field`, 400)
|
||||||
}
|
}
|
||||||
|
|
||||||
view.queryUI = utils.processSearchFilters(view.query)
|
view.queryUI = utils.processSearchFilters(view.query)
|
||||||
|
|
Loading…
Reference in New Issue