From b6de8257236193b5970ec6c79ba65b5bee0534f1 Mon Sep 17 00:00:00 2001 From: Mateusz Gozdek Date: Tue, 28 May 2019 05:07:14 +0200 Subject: [PATCH] backend/gcs: make Unlock error message more clear --- backend/remote-state/gcs/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/remote-state/gcs/client.go b/backend/remote-state/gcs/client.go index 930802b01..5163ba0c2 100644 --- a/backend/remote-state/gcs/client.go +++ b/backend/remote-state/gcs/client.go @@ -110,7 +110,7 @@ func (c *remoteClient) Lock(info *state.LockInfo) (string, error) { func (c *remoteClient) Unlock(id string) error { gen, err := strconv.ParseInt(id, 10, 64) if err != nil { - return err + return fmt.Errorf("Lock ID should be numerical value, got '%s'", id) } if err := c.lockFile().If(storage.Conditions{GenerationMatch: gen}).Delete(c.storageContext); err != nil {