Skip to content

Commit a428236

Browse files
committed
Output message if an exception occurs during the execution attempt loop. Emit as a warning since later executions can be successful.
1 parent 0aab60d commit a428236

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Elastic.Documentation/ExternalCommands/ExternalCommandExecutor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ protected string[] CaptureMultiple(bool muteExceptions, int attempts, string bin
5050
}
5151
catch (Exception ex)
5252
{
53+
collector.EmitWarning("", $"An exception occurred on attempt {i} to capture output of {binary}: {ex?.Message}");
5354
if (ex is not null)
5455
e = ex;
5556
}

0 commit comments

Comments
 (0)