From fc36b1cd9490233a3d220365fac3bc65679fe6de Mon Sep 17 00:00:00 2001 From: Emil Hessman Date: Wed, 17 Dec 2014 13:02:19 +0100 Subject: [PATCH] command: vet fix Fixes the following vet report: command/remote.go:165: wrong number of args for format in Sprintf call: 1 needed but 2 args --- command/remote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/remote.go b/command/remote.go index 727e82480..d9a773704 100644 --- a/command/remote.go +++ b/command/remote.go @@ -162,7 +162,7 @@ func (c *RemoteCommand) disableRemoteState() int { } defer fh.Close() if err := terraform.WriteState(local, fh); err != nil { - c.Ui.Error(fmt.Sprintf("Failed to encode state file: %v", + c.Ui.Error(fmt.Sprintf("Failed to encode state file '%s': %v", c.conf.statePath, err)) return 1 }