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.
Этот коммит содержится в:
коммит произвёл
Saturnino Abril
родитель
c9e9484150
Коммит
87762ae62e
@@ -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.")
|
||||
|
||||
Ссылка в новой задаче
Block a user