Skip to content

Commit

Permalink
print error in main()
Browse files Browse the repository at this point in the history
  • Loading branch information
Maartje Eyskens committed Aug 24, 2018
1 parent 0b60360 commit 5f0248c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
package main

import "github.com/tonobo/mtr/cli"
import (
"fmt"

"github.com/tonobo/mtr/cli"
)

func main() {
cli.RootCmd.Execute()
err := cli.RootCmd.Execute()
if err != nil {
fmt.Println(err)
}
}

0 comments on commit 5f0248c

Please sign in to comment.