Skip to content

Commit 7a6c309

Browse files
authored
Merge pull request #2323 from max-kahnt-keylight/patch-1
Make relation join error due to lack of initialization a bit more explicit
2 parents 0d60b51 + 8e7133b commit 7a6c309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/queryBuilder/join/RelationJoiner.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ function getAllColumnSelectionsForNode({ builder, tableNode }) {
285285

286286
if (!tableMeta) {
287287
throw new Error(
288-
'table metadata has not been fetched. Are you trying to call toKnexQuery() for a withGraphJoined query? To make sure the table metadata is fetched see the objection.initialize function.'
288+
`table metadata has not been fetched for table '${table}'. Are you trying to call toKnexQuery() for a withGraphJoined query? To make sure the table metadata is fetched see the objection.initialize function.`
289289
);
290290
}
291291

0 commit comments

Comments
 (0)