mirror of https://github.com/fiatjaf/nak.git
fix main command error handler printing wrongly formatted stuff.
This commit is contained in:
parent
1e237b4c42
commit
79cbc57dde
2
main.go
2
main.go
|
@ -124,7 +124,7 @@ func main() {
|
||||||
|
|
||||||
if err := app.Run(context.Background(), os.Args); err != nil {
|
if err := app.Run(context.Background(), os.Args); err != nil {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log(color.YellowString(err.Error()) + "\n")
|
log("%s\n", color.YellowString(err.Error()))
|
||||||
}
|
}
|
||||||
colors.reset()
|
colors.reset()
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|
Loading…
Reference in New Issue