Skip to content

Commit 935ef5a

Browse files
committed
check error count on console converter, display current cloud counter value starting from 1 (instead of 0), #BUILD
1 parent f963e59 commit 935ef5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MainWindow.xaml.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private void Main()
5858
var importSettings = ArgParser.Parse(null, rootFolder);
5959

6060
// if have files, process them
61-
if (importSettings != null)
61+
if (importSettings.errors.Count == 0)
6262
{
6363
// NOTE no background thread from commandline
6464
ProcessAllFiles(importSettings);
@@ -95,8 +95,8 @@ private static void ProcessAllFiles(System.Object importSettingsObject)
9595
// loop input files
9696
for (int i = 0, len = importSettings.maxFiles; i < len; i++)
9797
{
98-
Console.WriteLine("\nReading file (" + i + "/" + (len - 1) + ") : " + importSettings.inputFiles[i] + " (" + Tools.HumanReadableFileSize(new FileInfo(importSettings.inputFiles[i]).Length) + ")");
99-
Debug.WriteLine("\nReading file (" + i + "/" + (len - 1) + ") : " + importSettings.inputFiles[i] + " (" + Tools.HumanReadableFileSize(new FileInfo(importSettings.inputFiles[i]).Length) + ")");
98+
Console.WriteLine("\nReading file (" + (i + 1) + "/" + len + ") : " + importSettings.inputFiles[i] + " (" + Tools.HumanReadableFileSize(new FileInfo(importSettings.inputFiles[i]).Length) + ")");
99+
Debug.WriteLine("\nReading file (" + (i + 1) + "/" + len + ") : " + importSettings.inputFiles[i] + " (" + Tools.HumanReadableFileSize(new FileInfo(importSettings.inputFiles[i]).Length) + ")");
100100

101101
//if (abort==true)
102102

0 commit comments

Comments
 (0)