backend/gcs: make Unlock error message more clear

This commit is contained in:
Mateusz Gozdek 2019-05-28 05:07:14 +02:00 committed by Martin Atkins
parent f3fb3f8ccf
commit b6de825723
1 changed files with 1 additions and 1 deletions

View File

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