Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
With error handling added, just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan Keen committed Oct 16, 2015
1 parent 0bd7e8d commit 8f4caa6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rocker/dockerclient/dockerclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ type Config struct {
func NewConfig() *Config {
certPath := os.Getenv("DOCKER_CERT_PATH")
if certPath == "" {
homePath, _ := homedir.Dir()
homePath, err := homedir.Dir()
if err != nil {
log.Fatal(err)
}
certPath = homePath + "/.docker"
}
host := os.Getenv("DOCKER_HOST")
Expand Down

0 comments on commit 8f4caa6

Please sign in to comment.