Skip to content

Commit 536d4c2

Browse files
authored
Fix output of device update (#232)
***NO_CI***
1 parent 9485e90 commit 536d4c2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

nanoFirmwareFlasher.Library/NanoDeviceOperations.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ public async Task<ExitCodes> UpdateDeviceClrAsync(
262262
Console.ForegroundColor = ConsoleColor.Cyan;
263263

264264
Console.WriteLine($"Connected to nano device: {nanoDevice.Description}");
265-
Console.WriteLine($"{nanoDevice.DeviceInfo.ClrBuildVersion}");
266265
Console.WriteLine("");
267266

268267
Console.ForegroundColor = ConsoleColor.White;
@@ -368,6 +367,16 @@ public async Task<ExitCodes> UpdateDeviceClrAsync(
368367
Console.ForegroundColor = ConsoleColor.White;
369368
}
370369
}
370+
else
371+
{
372+
if (verbosity >= VerbosityLevel.Normal)
373+
{
374+
Console.ForegroundColor = ConsoleColor.Red;
375+
Console.WriteLine("FAILED!");
376+
377+
return ExitCodes.E2002;
378+
}
379+
}
371380

372381
if (attemptToLaunchBooter)
373382
{

0 commit comments

Comments
 (0)