From a46fe8cafcc2bf3fad512d09c1e7bf6d78ee254f Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Tue, 25 Jun 2024 11:56:20 +0100 Subject: [PATCH] minor edits and fixes --- cmd/enbas/main.go | 4 ++-- internal/executor/init.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/enbas/main.go b/cmd/enbas/main.go index d8107e4..2f855ca 100644 --- a/cmd/enbas/main.go +++ b/cmd/enbas/main.go @@ -213,7 +213,7 @@ func run() error { exe, ok := executorMap[command] if !ok { - err := executor.UnknownCommandError{Command: command} + err = executor.UnknownCommandError{Command: command} enbasPrinter.PrintFailure(err.Error() + ".") flag.Usage() @@ -221,7 +221,7 @@ func run() error { return err } - if err := executor.Execute(exe, args); err != nil { + if err = executor.Execute(exe, args); err != nil { enbasPrinter.PrintFailure("(" + command + ") " + err.Error() + ".") return err diff --git a/internal/executor/init.go b/internal/executor/init.go index 8d71bc3..54581b3 100644 --- a/internal/executor/init.go +++ b/internal/executor/init.go @@ -46,7 +46,7 @@ func (i *InitExecutor) Execute() error { } if fileExists { - i.printer.PrintInfo("The configuration file is already present in " + i.configDir) + i.printer.PrintInfo("The configuration file is already present in " + i.configDir + "\n") return nil }