summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-02-16 14:48:30 +0000
committerHarrison Healey <harrisonmhealey@gmail.com>2017-02-16 09:48:30 -0500
commit821939e5dab144ac14b4f288cb8d0c9e3bb570d0 (patch)
tree8bf0c97db56dbcbc88e63addf415952bbcbba05c /cmd
parentf87d42916f1ec4287daad29d6ffd4145dfc4b5cd (diff)
downloadchat-821939e5dab144ac14b4f288cb8d0c9e3bb570d0.tar.gz
chat-821939e5dab144ac14b4f288cb8d0c9e3bb570d0.tar.bz2
chat-821939e5dab144ac14b4f288cb8d0c9e3bb570d0.zip
Bulk import success message not shown on error. (#5401)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/platform/import.go10
1 files 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