Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: error code when object dose not exist #1253

Closed

Conversation

Bart200c
Copy link

Description

fix error code when object dose not exist

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

Potential Impacts

  • add potential impacts for other components here
  • ...

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link
Collaborator

@sysvm sysvm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BarryTong65 please help review.

@BarryTong65
Copy link
Contributor

GetObjectMeta is used to obtain the information of an object using the bucket name and object name. Additionally verifying the existence of the bucket is unnecessary.

@Bart200c
Copy link
Author

GetObjectMeta is used to obtain the information of an object using the bucket name and object name. Additionally verifying the existence of the bucket is unnecessary.

When an object does not exist, the error ErrNoSuchBucket will make the developer confused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants