We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26330df commit 20eaa50Copy full SHA for 20eaa50
1 file changed
src/https/Program.cs
@@ -324,6 +324,11 @@ public async Task<int> RunAsync(string[] args)
324
renderer.WriteException(ex);
325
return 1;
326
}
327
+ catch (OperationCanceledException ex)
328
+ {
329
+ renderer.WriteException(ex);
330
+ return 1;
331
+ }
332
catch (HttpRequestException ex)
333
{
334
@@ -580,7 +585,7 @@ ExceptionHelp WriteException(Exception ex, int depth)
580
585
_info.WriteLine(ex.Message);
581
586
582
587
var exceptionHelp = ExceptionHelp.None;
583
- if (ex is TaskCanceledException)
588
+ if (ex is TaskCanceledException || ex is OperationCanceledException)
584
589
590
return ExceptionHelp.Timeout;
591
0 commit comments