From 87762ae62eb887dfb3fd0957040919aede46f7d4 Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Thu, 22 Mar 2018 15:33:02 -0400 Subject: Improved bulkload error handling (#8491) * log the config file path used by the server on startup * return an err if the bulk import command fails * log the underlying errors that occur when importing The code assumed all errors meant a missing resource, but it's possible something else is at fault. Including the error helps pinpoint that more readily. --- cmd/commands/import.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') diff --git a/cmd/commands/import.go b/cmd/commands/import.go index 4058d175a..c572ec53a 100644 --- a/cmd/commands/import.go +++ b/cmd/commands/import.go @@ -130,6 +130,7 @@ func bulkImportCmdF(command *cobra.Command, args []string) error { if lineNumber != 0 { cmd.CommandPrettyPrintln(fmt.Sprintf("Error occurred on data file line %v", lineNumber)) } + return err } else { if apply { cmd.CommandPrettyPrintln("Finished Bulk Import.") -- cgit v1.2.3-1-g7c22