minor edits and fixes

This commit is contained in:
Dan Anglin 2024-06-25 11:56:20 +01:00
parent 727b0c43ac
commit a46fe8cafc
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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
}