buildkitd: handle config loading errors correctly

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
master
Tonis Tiigi 2022-02-16 20:53:17 -08:00
parent c14bf69e7b
commit 46dcd7d9a6
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ func defaultConf() (config.Config, error) {
if !errors.As(err, &pe) {
return config.Config{}, err
}
return cfg, nil
logrus.Warnf("failed to load default config: %v", err)
}
setDefaultConfig(&cfg)