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 20
20
using System . Linq . Expressions ;
21
21
using System . Threading ;
22
22
using System . Threading . Tasks ;
23
- using MongoDB . Bson ;
24
- using MongoDB . Driver . Linq ;
25
23
using MongoDB . Driver . Linq . Linq3Implementation . Translators . ExpressionToExecutableQueryTranslators ;
26
24
27
25
namespace MongoDB . Driver . Linq . Linq3Implementation
@@ -108,10 +106,14 @@ public override string ToString()
108
106
var executableQuery = ExpressionToExecutableQueryTranslator . Translate < TDocument , TOutput > ( _provider , _expression ) ;
109
107
return executableQuery . ToString ( ) ;
110
108
}
111
- catch ( Exception ex )
109
+ catch ( ExpressionNotSupportedException ex )
112
110
{
113
111
return ex . Message ;
114
112
}
113
+ catch ( Exception ex )
114
+ {
115
+ return ex . ToString ( ) ;
116
+ }
115
117
}
116
118
}
117
119
}
You can’t perform that action at this time.
0 commit comments