From e39378b2543952d8e6179c1ca74c2457a2812677 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 11 Jul 2014 22:01:33 -0700 Subject: [PATCH] command/refresh: better comment --- command/refresh.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command/refresh.go b/command/refresh.go index 1164c7f8c..54c9ac320 100644 --- a/command/refresh.go +++ b/command/refresh.go @@ -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(