[#137] Add index page support
All checks were successful
/ DCO (pull_request) Successful in 52s
/ Builds (pull_request) Successful in 49s
/ Vulncheck (pull_request) Successful in 1m15s
/ Lint (pull_request) Successful in 2m36s
/ Tests (pull_request) Successful in 1m3s

Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
This commit is contained in:
Nikita Zinkevich 2024-09-23 09:09:32 +03:00
parent 7e80f0cce6
commit 88a26c0f59
4 changed files with 25 additions and 15 deletions

View file

@ -60,7 +60,10 @@ func (x *FrostFS) CreateObject(ctx context.Context, prm handler.PrmObjectCreate)
}
idObj, err := x.pool.PutObject(ctx, prmPut)
return idObj, handleObjectError("save object via connection pool", err)
if err != nil {
return oid.ID{}, handleObjectError("save object via connection pool", err)
}
return idObj.ObjectID, nil
}
// wraps io.ReadCloser and transforms Read errors related to access violation