Bulk import success message not shown on error. (#5401)

This commit is contained in:
George Goldberg
2017-02-16 14:48:30 +00:00
committed by Harrison Healey
parent f87d42916f
commit 821939e5da

View File

@@ -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