Skip to content

Commit bd1d999

Browse files
committed
Improved debugging output
Use ToString of the expression as message, this allows usage of PartialEvaluationExceptionExpression ToString output
1 parent 93a3050 commit bd1d999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Linq/Visitors/HqlGeneratorExpressionTreeVisitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected HqlTreeNode VisitExpression(Expression expression)
139139
// return VisitNhNew((NhNewExpression)expression);
140140
}
141141

142-
throw new NotSupportedException(expression.GetType().Name);
142+
throw new NotSupportedException(expression.ToString());
143143
}
144144
}
145145

0 commit comments

Comments
 (0)