Skip to content

Commit

Permalink
Merge pull request #17 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 1.1.1+
  • Loading branch information
andyone authored Oct 12, 2016
2 parents d94d56a + 594b71f commit a4816be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func Init() {
fmtc.Println("{r}Arguments parsing errors:{!}")

for _, err := range errs {
fmtc.Printf(" {r}%s{!}\n", err.Error())
fmtc.Printf(" {r}%v{!}\n", err)
}

os.Exit(1)
Expand Down Expand Up @@ -134,7 +134,7 @@ func process(args []string) {

if err != nil {
if !arg.GetB(ARG_FORMAT) {
fmtc.Printf("{r}%s{!}\n", err.Error())
fmtc.Printf("{r}%v{!}\n", err)
}

os.Exit(1)
Expand All @@ -148,7 +148,7 @@ func process(args []string) {
hosts, err = readHostList(hosts[0])

if err != nil && arg.GetB(ARG_FORMAT) {
fmtc.Printf("{r}%s{!}\n", err.Error())
fmtc.Printf("{r}%v{!}\n", err)
os.Exit(1)
}
}
Expand Down Expand Up @@ -220,7 +220,7 @@ func check(host string) string {
ap, err := api.Analyze(host, params)

if err != nil {
fmtc.Printf("{r}%s{!}\n", err.Error())
fmtc.Printf("{r}%v{!}\n", err)
return "T"
}

Expand All @@ -230,7 +230,7 @@ func check(host string) string {
info, err = ap.Info()

if err != nil {
t.Printf("{r}%s{!}\n", err.Error())
t.Printf("{r}%v{!}\n", err)
return "Err"
}

Expand Down

0 comments on commit a4816be

Please sign in to comment.