Skip to content

Would be nice if Container->delete() threw a more meaningful exception when the container isn't empty. #252

@flcoder

Description

@flcoder

OpenCloud/ObjectStore/Resource/Container->delete()

I'm not quite sure how all the git stuff works, but I'm trying to learn. I spent quite a lot of time trying to figure out what the exception meant when I tried to delete a container that had an object in it. It didn't say anything like, "Hey you can't do this until you delete the objects in the container." It would be really cool if it had. I suppose once you're pro and you've been doing this awhile, you'll know that 409 means, "Hey you can't do this until you delete the objects in the container", but until you are, you're stuck with "409, good luck figuring out what this means!"

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions