diff options
author | Félix Sipma <felix+debian@gueux.org> | 2018-12-08 10:06:05 +0100 |
---|---|---|
committer | Félix Sipma <felix+debian@gueux.org> | 2018-12-08 10:06:05 +0100 |
commit | 3d051b974f4ea81f56380fdd6067c8b264b329a7 (patch) | |
tree | f48909a88b7df1c5b3a4248a0811550dcab16701 /api-stat.go | |
parent | 5df83236b23b9200b3ec2b50302b7330b1b998f6 (diff) | |
parent | 43652cf02b0139f53e70c14f9324371a5a5d35a9 (diff) |
Update upstream source from tag 'upstream/6.0.11'
Update to upstream version '6.0.11'
with Debian dir feb476a1f55f97e3a54f71ac42feb7cb301de1b8
Diffstat (limited to 'api-stat.go')
-rw-r--r-- | api-stat.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api-stat.go b/api-stat.go index 3b054c3..91e9d39 100644 --- a/api-stat.go +++ b/api-stat.go @@ -47,6 +47,10 @@ func (c Client) BucketExists(bucketName string) (bool, error) { return false, err } if resp != nil { + resperr := httpRespToErrorResponse(resp, bucketName, "") + if ToErrorResponse(resperr).Code == "NoSuchBucket" { + return false, nil + } if resp.StatusCode != http.StatusOK { return false, httpRespToErrorResponse(resp, bucketName, "") } |