Skip to content

Commit 7dfe473

Browse files
committed
added stack preservation
1 parent 7086c90 commit 7dfe473

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/model/EntityQuery.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,8 @@ export default class EntityQuery<T = any>
646646

647647
} catch(error) {
648648
session.error(`Failed executing ${query?.text}\n${error.stack ?? error}`);
649-
throw error;
649+
// this should preserve stack trace..
650+
throw new EntityAccessError(`Failed ${error.stack ?? error}\n`);
650651
}
651652
}
652653

0 commit comments

Comments
 (0)