summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd/mattermost/commands/import.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/cmd/mattermost/commands/import.go b/cmd/mattermost/commands/import.go
index 91cfaf997..8526ba6f8 100644
--- a/cmd/mattermost/commands/import.go
+++ b/cmd/mattermost/commands/import.go
@@ -74,9 +74,18 @@ func slackImportCmdF(command *cobra.Command, args []string) error {
CommandPrettyPrintln("Running Slack Import. This may take a long time for large teams or teams with many messages.")
- a.SlackImport(fileReader, fileInfo.Size(), team.Id)
+ importErr, log := a.SlackImport(fileReader, fileInfo.Size(), team.Id)
+
+ if importErr != nil {
+ return err
+ }
+
+ CommandPrettyPrintln("")
+ CommandPrintln(log.String())
+ CommandPrettyPrintln("")
CommandPrettyPrintln("Finished Slack Import.")
+ CommandPrettyPrintln("")
return nil
}