From e610fb3201bb233e68d88c1dfcd30d4206e53f22 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 1 Jun 2019 22:42:10 +0200 Subject: [PATCH] Make config parse errors readable --- bridge/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge/config/config.go b/bridge/config/config.go index d8237555..a0cc20f7 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -254,12 +254,12 @@ func newConfigFromString(logger *logrus.Entry, input []byte) *config { viper.AutomaticEnv() if err := viper.ReadConfig(bytes.NewBuffer(input)); err != nil { - logger.Fatalf("Failed to parse the configuration: %#v", err) + logger.Fatalf("Failed to parse the configuration: %s", err) } cfg := &BridgeValues{} if err := viper.Unmarshal(cfg); err != nil { - logger.Fatalf("Failed to load the configuration: %#v", err) + logger.Fatalf("Failed to load the configuration: %s", err) } return &config{ logger: logger,