From 1c96e3f57f153435aa47076f19fadf07ef5c3033 Mon Sep 17 00:00:00 2001 From: Pavol Loffay Date: Wed, 8 Nov 2017 10:39:14 +0100 Subject: [PATCH] Add return Signed-off-by: Pavol Loffay --- cmd/flags/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/flags/flags.go b/cmd/flags/flags.go index 00a9647189e..f17cd1317a3 100644 --- a/cmd/flags/flags.go +++ b/cmd/flags/flags.go @@ -49,7 +49,7 @@ func TryLoadConfigFile(v *viper.Viper) error { v.SetConfigFile(file) err := v.ReadInConfig() if err != nil { - errors.Wrap(err, fmt.Sprintf("Error loading config file %s", file)) + return errors.Wrapf(err, "Error loading config file %s", file) } } return nil