From 79af4409b5617000ac7de4fcab0ce98e8f8e3622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 18 Mar 2021 19:50:37 +0100 Subject: [PATCH] viper ConfigFileUsed instead of env. --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index afc7c2ae..ccbd2a0d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -123,7 +123,7 @@ func init() { if file == "" { logger.Warn().Msg("preflight complete without config file") } else { - if _, err := os.Stat(config); os.IsNotExist(err) { + if _, err := os.Stat(file); os.IsNotExist(err) { logger.Error().Msg("preflight complete with nonexistent config file") } else { logger.Info().Msg("preflight complete")