Skip to content

Commit ecb797c

Browse files
authored
Let the OperationCanceledException propagate in .Translate() (#401)
1 parent 8a555bd commit ecb797c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orm/Xtensive.Orm/Orm/Linq/QueryProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ internal TranslatedQuery Translate(Expression expression,
166166
var context = new TranslatorContext(Session, compilerConfiguration, expression, compiledQueryScope);
167167
return context.Translator.Translate();
168168
}
169-
catch (Exception ex) {
169+
catch (Exception ex) when (ex is not OperationCanceledException) {
170170
string serializedExpression = null;
171171
try {
172172
serializedExpression = expression.ToString(true);

0 commit comments

Comments
 (0)