Skip to content

Commit 6615605

Browse files
authored
Fix output message of fw suitability check (#306)
***NO_CI***
1 parent 7f0f33f commit 6615605

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

nanoFirmwareFlasher.Tool/Program.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,13 @@ private static void CheckVersion()
146146
}
147147
catch (Exception)
148148
{
149-
OutputWriter.ForegroundColor = ConsoleColor.DarkYellow;
150-
OutputWriter.WriteLine("** Can't check the version! **");
151-
OutputWriter.WriteLine("** Continuing anyway. **");
152-
OutputWriter.ForegroundColor = ConsoleColor.White;
149+
if (_verbosityLevel > VerbosityLevel.Quiet)
150+
{
151+
OutputWriter.ForegroundColor = ConsoleColor.DarkYellow;
152+
OutputWriter.WriteLine("** Can't check the version! **");
153+
OutputWriter.WriteLine("** Continuing anyway. **");
154+
OutputWriter.ForegroundColor = ConsoleColor.White;
155+
}
153156
}
154157
}
155158

0 commit comments

Comments
 (0)