Skip to content

Commit

Permalink
command/refresh: better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Jul 12, 2014
1 parent ff75d15 commit e39378b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion command/refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ func (c *RefreshCommand) Run(args []string) int {
stateOutPath = statePath
}

// Verify that the state path exists
// Verify that the state path exists. The "ContextArg" function below
// will actually do this, but we want to provide a richer error message
// if possible.
if _, err := os.Stat(statePath); err != nil {
if os.IsNotExist(err) {
c.Ui.Error(fmt.Sprintf(
Expand Down

0 comments on commit e39378b

Please sign in to comment.