[CLI] Don't show 'completed' when export failed

This commit is contained in:
Alexey Golub
2019-04-11 01:36:39 +03:00
parent 6d9bc3625f
commit 795dfbb213
4 changed files with 17 additions and 1 deletions

View File

@@ -49,6 +49,9 @@ namespace DiscordChatExporter.Cli.Verbs
// Export
await exportService.ExportChatLogAsync(chatLog, filePath, Options.ExportFormat, Options.PartitionLimit);
// Report successful completion
progress.ReportCompletion();
}
}
}

View File

@@ -59,6 +59,9 @@ namespace DiscordChatExporter.Cli.Verbs
// Export
await exportService.ExportChatLogAsync(chatLog, filePath, Options.ExportFormat,
Options.PartitionLimit);
// Report successful completion
progress.ReportCompletion();
}
}
catch (HttpErrorStatusCodeException ex) when (ex.StatusCode == HttpStatusCode.Forbidden)

View File

@@ -60,6 +60,9 @@ namespace DiscordChatExporter.Cli.Verbs
// Export
await exportService.ExportChatLogAsync(chatLog, filePath, Options.ExportFormat,
Options.PartitionLimit);
// Report successful completion
progress.ReportCompletion();
}
}
catch (HttpErrorStatusCodeException ex) when (ex.StatusCode == HttpStatusCode.Forbidden)