From 2ec03766a209fda760ae1655e8a6a3f70d66bb10 Mon Sep 17 00:00:00 2001 From: catalintomai <56169943+catalintomai@users.noreply.github.com> Date: Tue, 18 Feb 2020 09:59:44 -0800 Subject: [PATCH] MM-22372: fix unhandled exception when exporting to CSV. (#13864) * MM-23272: fix unhandled exception * MM-22372: removed extra log command * MM-22372: fix merge conflict --- cmd/mattermost/commands/export.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mattermost/commands/export.go b/cmd/mattermost/commands/export.go index fc9a8b8113..4e7ce4cba6 100644 --- a/cmd/mattermost/commands/export.go +++ b/cmd/mattermost/commands/export.go @@ -153,7 +153,7 @@ func buildExportCmdF(format string) func(command *cobra.Command, args []string) } if a.MessageExport() == nil { - CommandPrettyPrintln("MessageExport feature not available") + return errors.New("message export feature not available") } err2 := a.MessageExport().RunExport(format, startTime)