Skip to content

Commit

Permalink
updated "classic" error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ctacke committed Sep 29, 2023
1 parent e3d03b9 commit 8d1402e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,14 @@ public override async ValueTask ExecuteAsync(IConsole console)
}
catch (Exception ex)
{
Logger.LogError($"Exception type: {ex.GetType().Name}");

// TODO: scope this to the right exception type for Win 10 access violation thing
// TODO: catch the Win10 DFU error here and change the global provider configuration to "classic"
Settings.SaveSetting(SettingsManager.PublicSettings.LibUsb, "classic");

Logger.LogWarning("This machine requires an older version of libusb. Not to worry, I'll make the change for you, but you will have to re-run this 'firmware write' command.");
return;
}

// now wait for a new serial port to appear
Expand Down

0 comments on commit 8d1402e

Please sign in to comment.