minor edits and fixes
This commit is contained in:
parent
727b0c43ac
commit
a46fe8cafc
2 changed files with 3 additions and 3 deletions
|
@ -213,7 +213,7 @@ func run() error {
|
||||||
|
|
||||||
exe, ok := executorMap[command]
|
exe, ok := executorMap[command]
|
||||||
if !ok {
|
if !ok {
|
||||||
err := executor.UnknownCommandError{Command: command}
|
err = executor.UnknownCommandError{Command: command}
|
||||||
|
|
||||||
enbasPrinter.PrintFailure(err.Error() + ".")
|
enbasPrinter.PrintFailure(err.Error() + ".")
|
||||||
flag.Usage()
|
flag.Usage()
|
||||||
|
@ -221,7 +221,7 @@ func run() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := executor.Execute(exe, args); err != nil {
|
if err = executor.Execute(exe, args); err != nil {
|
||||||
enbasPrinter.PrintFailure("(" + command + ") " + err.Error() + ".")
|
enbasPrinter.PrintFailure("(" + command + ") " + err.Error() + ".")
|
||||||
|
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -46,7 +46,7 @@ func (i *InitExecutor) Execute() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if fileExists {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue