Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update RelationJoiner.js
Make relation joiner error a bit more explicit.
  • Loading branch information
max-kahnt-keylight authored Oct 3, 2022
commit 8e7133b9274176c6cea9ed1694e970cf61967410
2 changes: 1 addition & 1 deletion lib/queryBuilder/join/RelationJoiner.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ function getAllColumnSelectionsForNode({ builder, tableNode }) {

if (!tableMeta) {
throw new Error(
'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.'
`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.`
);
}

Expand Down