command/refresh: better comment

This commit is contained in:
Mitchell Hashimoto 2014-07-11 22:01:33 -07:00
parent ff75d15f51
commit e39378b254
1 changed files with 3 additions and 1 deletions

View File

@ -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(