Skip to content

Commit

Permalink
refa (DfuInstallation::OnProgressChanged()): we now emit errors on th…
Browse files Browse the repository at this point in the history
…e error output
  • Loading branch information
ksidirop-laerdal committed Feb 26, 2025
1 parent 1edc3d2 commit bd32d08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Laerdal.Dfu/DfuInstallation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ internal void OnProgressChanged(double progress, double currentSpeedBytesPerSeco
{
try
{
Console.WriteLine($"[DI.OPC.010] [DfuInstallation.OnProgressChanged()] [BUG] Suppressed internal bug while trying to calculate progress - report this incident!\n\n{ex}");
Console.Error.WriteLine($"[DI.OPC.010] [DfuInstallation.OnProgressChanged()] [BUG] Suppressed internal bug while trying to calculate progress - report this incident!\n\n{ex}");
}
catch
{
Expand All @@ -224,7 +224,7 @@ internal void OnProgressChanged(double progress, double currentSpeedBytesPerSeco
{
try
{
Console.WriteLine($"[DI.OPC.020] [DfuInstallation.OnProgressChanged()::ProgressChangedEvent] [USERLAND BUG - SUPPRESSED] Error while raising event ProgressChanged - report this incident!\n\n{ex}");
Console.Error.WriteLine($"[DI.OPC.020] [DfuInstallation.OnProgressChanged()::ProgressChangedEvent] [USERLAND BUG - SUPPRESSED] Error while raising event ProgressChanged - report this incident!\n\n{ex}");
}
catch
{
Expand Down

0 comments on commit bd32d08

Please sign in to comment.