From 9972551239409cf4b0366fdd5f9143288b7f74b9 Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 21 May 2023 18:59:12 +0200 Subject: [PATCH] run: improve config load err message --- run.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run.go b/run.go index 685d896..0dfc4e7 100644 --- a/run.go +++ b/run.go @@ -93,7 +93,9 @@ func run() error { conf, err := config.Load(*configFlag, *configIsPathFlag) if err != nil { - return fmt.Errorf("couldn't load config file '%s', full err: %w", *configFlag, err) + return fmt.Errorf("couldn't load the configuration (isPath: '%t') '%s', full err: %w", + *configIsPathFlag, *configFlag, err, + ) } setting := settings.New()