Skip to content

Commit

Permalink
Make EvalSymlink errors more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
evanphx committed Oct 13, 2016
1 parent cb64cfe commit e2c0abd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (c *Client) init() error {

p, err = filepath.EvalSymlinks(p)
if err != nil {
return err
return fmt.Errorf("failed to find temporary directory for the StateDir: %v", err)
}

c.config.StateDir = p
Expand All @@ -299,7 +299,7 @@ func (c *Client) init() error {

p, err = filepath.EvalSymlinks(p)
if err != nil {
return err
return fmt.Errorf("failed to find temporary directory for the AllocDir: %v", err)
}

c.config.AllocDir = p
Expand Down

0 comments on commit e2c0abd

Please sign in to comment.