commit | 9ad9243e96dc84ba08f620f42b8735cf8caa0486 | [log] [tgz] |
---|---|---|
author | jrperritt <jrperritt@gmail.com> | Fri Jul 31 19:10:30 2015 -0600 |
committer | jrperritt <jrperritt@gmail.com> | Fri Jul 31 19:10:30 2015 -0600 |
tree | 3d1ece94adad3823cb7d8412506f6a070ac036bc | |
parent | 433cc79ab806080e4f84ed2e688230565476742c [diff] |
return etag error if checksum and etag aren't equal
diff --git a/openstack/objectstorage/v1/objects/requests.go b/openstack/objectstorage/v1/objects/requests.go index 2123dd9..c2fbaae 100644 --- a/openstack/objectstorage/v1/objects/requests.go +++ b/openstack/objectstorage/v1/objects/requests.go
@@ -240,6 +240,7 @@ res.Err = err return res } + res.Err = fmt.Errorf("Local checksum does not match API ETag header") } return res