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 }