Skip to content

Commit eb2adba

Browse files
carlileconsultfredericDelaporte
authored andcommitted
Include the query in loader PostInstantiate QueryException (#1827)
1 parent 48ce36b commit eb2adba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Loader/BasicLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected override void PostInstantiate()
6262
// so be careful about how you formulate your queries in this case
6363
if (bagCount > 1)
6464
{
65-
throw new QueryException("Cannot simultaneously fetch multiple bags.");
65+
throw new QueryException($"Cannot simultaneously fetch multiple bags: {this}");
6666
}
6767
}
6868

0 commit comments

Comments
 (0)