assert中的信息输出
This commit is contained in:
parent
d80b59c6d9
commit
39cf85e051
|
|
@ -1621,7 +1621,7 @@ function checkDeduceFilters(dfc, context) {
|
|||
* @returns
|
||||
*/
|
||||
function checkFilterContains(entity, context, contained, filter, dataCompare, warningOnDataCompare) {
|
||||
(0, assert_1.default)(filter);
|
||||
(0, assert_1.default)(filter, `对${entity}的访问必须有filter`);
|
||||
const schema = context.getSchema();
|
||||
const result = contains(entity, schema, filter, contained);
|
||||
if (typeof result === 'boolean') {
|
||||
|
|
|
|||
|
|
@ -1858,7 +1858,7 @@ export function checkFilterContains<ED extends EntityDict & BaseEntityDict, T ex
|
|||
dataCompare?: true,
|
||||
warningOnDataCompare?: true): boolean | Promise<boolean> {
|
||||
|
||||
assert(filter);
|
||||
assert(filter, `对${entity as string}的访问必须有filter`);
|
||||
const schema = context.getSchema();
|
||||
|
||||
const result = contains(entity, schema, filter, contained);
|
||||
|
|
|
|||
Loading…
Reference in New Issue