File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/MongoDB.Driver/Linq/Linq3Implementation Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2020using System . Linq . Expressions ;
2121using System . Threading ;
2222using System . Threading . Tasks ;
23- using MongoDB . Bson ;
24- using MongoDB . Driver . Linq ;
2523using MongoDB . Driver . Linq . Linq3Implementation . Translators . ExpressionToExecutableQueryTranslators ;
2624
2725namespace MongoDB . Driver . Linq . Linq3Implementation
@@ -108,10 +106,14 @@ public override string ToString()
108106 var executableQuery = ExpressionToExecutableQueryTranslator . Translate < TDocument , TOutput > ( _provider , _expression ) ;
109107 return executableQuery . ToString ( ) ;
110108 }
111- catch ( Exception ex )
109+ catch ( ExpressionNotSupportedException ex )
112110 {
113111 return ex . Message ;
114112 }
113+ catch ( Exception ex )
114+ {
115+ return ex . ToString ( ) ;
116+ }
115117 }
116118 }
117119}
You can’t perform that action at this time.
0 commit comments