From 821939e5dab144ac14b4f288cb8d0c9e3bb570d0 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Thu, 16 Feb 2017 14:48:30 +0000 Subject: Bulk import success message not shown on error. (#5401) --- cmd/platform/import.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/platform/import.go b/cmd/platform/import.go index 76ed1fb81..2f995aad2 100644 --- a/cmd/platform/import.go +++ b/cmd/platform/import.go @@ -106,12 +106,12 @@ func bulkImportCmdF(cmd *cobra.Command, args []string) error { if lineNumber != 0 { CommandPrettyPrintln(fmt.Sprintf("Error occurred on data file line %v", lineNumber)) } - } - - if apply { - CommandPrettyPrintln("Finished Bulk Import.") } else { - CommandPrettyPrintln("Validation complete. You can now perform the import by rerunning this command with the --apply flag.") + if apply { + CommandPrettyPrintln("Finished Bulk Import.") + } else { + CommandPrettyPrintln("Validation complete. You can now perform the import by rerunning this command with the --apply flag.") + } } return nil -- cgit v1.2.3-1-g7c22