forked from TrueCloudLab/frostfs-s3-gw
Change returned error for GetBucketInfo method
method should returns gRPC status errors Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
parent
8eff7d4dd3
commit
3244f54022
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ func (n *layer) GetBucketInfo(ctx context.Context, name string) (*BucketInfo, er
|
|||
}
|
||||
}
|
||||
|
||||
return nil, errors.New("bucket not found")
|
||||
return nil, status.Error(codes.NotFound, "bucket not found")
|
||||
}
|
||||
|
||||
// ListBuckets returns all user containers. Name of the bucket is a container
|
||||
|
|
Loading…
Reference in a new issue