nhibernate/nhibernate-core — pull request #208 by janv8000 (2013-05-24 08:29:41+00:00)
Title: Improved debugging

Use ToString of the expression as message, this allows usage of
PartialEvaluationExceptionExpression ToString output

Should help when debugging the following stacktrace:

System.NotSupportedException: PartialEvaluationExceptionExpression
at NHibernate.Linq.Visitors.HqlGeneratorExpressionTreeVisitor.VisitExpression(Expression expression)
at NHibernate.Linq.Visitors.HqlGeneratorExpressionTreeVisitor.VisitBinaryExpression(BinaryExpression expression)
...