Skip to content

Commit

Permalink
Merge pull request #34 from remind101/more_specific_errors
Browse files Browse the repository at this point in the history
Raw err print is hard to troubleshoot
  • Loading branch information
phobologic committed Feb 17, 2016
2 parents 989292b + 721373a commit 9ea7595
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"strings"
"time"

"github.com/github/hub/git"
"github.com/codegangsta/cli"
"github.com/github/hub/git"
hub "github.com/github/hub/github"
"github.com/google/go-github/github"
)
Expand Down Expand Up @@ -90,7 +90,7 @@ func NewApp() *cli.App {
if c.Bool("update") {
updater := NewUpdater()
if err := updater.Update(); err != nil {
fmt.Println(err)
fmt.Printf("Error Updating deploy command: %s\n", err)
os.Exit(-1)
} else {
os.Exit(0)
Expand All @@ -109,7 +109,7 @@ func NewApp() *cli.App {
}
}

fmt.Println(msg)
fmt.Printf("Error from github deployments: %s\n", msg)
os.Exit(-1)
}
}
Expand Down

0 comments on commit 9ea7595

Please sign in to comment.