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 удалений

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

@@ -54,6 +54,7 @@ func (a *App) LoadConfig(configFile string) *model.AppError {
a.configFile = configPath
utils.ConfigureLog(&cfg.LogSettings)
l4g.Info("Using config file at %s", configPath)
a.config.Store(cfg)