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.
Этот коммит содержится в:
Jesse Hallam
2018-03-22 15:33:02 -04:00
коммит произвёл Saturnino Abril
родитель c9e9484150
Коммит 87762ae62e
3 изменённых файлов: 20 добавлений и 18 удалений

Просмотреть файл

@@ -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.")