From 26988ecf6adc8ad36a1a2572a8aea7af30e5714b Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Fri, 29 Mar 2024 09:48:03 +0100 Subject: [PATCH] Corrected error messages for CliArgs --- cmd/control/cli.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/control/cli.go b/cmd/control/cli.go index 625b678..1d04997 100644 --- a/cmd/control/cli.go +++ b/cmd/control/cli.go @@ -27,19 +27,19 @@ func HandleCliArgs() (*CliArgs, error) { cliArgs.KeyFile, err = filepath.Abs(*keyFile) if err != nil { - return nil, fmt.Errorf("error finding KeyFile: %v", err) + return nil, fmt.Errorf("error finding absolute path for KeyFile: %v", err) } cliArgs.LogFile, err = filepath.Abs(*logFile) if err != nil { - return nil, fmt.Errorf("error finding LogFile: %v", err) + return nil, fmt.Errorf("error finding absolute path for LogFile: %v", err) } cliArgs.PicsDir, err = filepath.Abs(*picsDir) if err != nil { - return nil, fmt.Errorf("error finding PicsDir: %v", err) + return nil, fmt.Errorf("error finding absolute path for PicsDir: %v", err) } cliArgs.WebDir, err = filepath.Abs(*webDir) if err != nil { - return nil, fmt.Errorf("error finding WebDir: %v", err) + return nil, fmt.Errorf("error finding absolute path for WebDir: %v", err) } return cliArgs, nil