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

Better error Messages #253

Open
Vad1mo opened this issue Nov 14, 2024 · 0 comments
Open

Better error Messages #253

Vad1mo opened this issue Nov 14, 2024 · 0 comments

Comments

@Vad1mo
Copy link
Member

Vad1mo commented Nov 14, 2024

When a command fails, in this case became the project isn't empty the output error message can be improved with a much better repsonse for the user to knwo what is actually going on.

# project not empty 
/bin/harbor project delete elliot
ERRO[0000] failed to delete project: [DELETE /projects/{project_name_or_id}][412] deleteProjectPreconditionFailed  &{Errors:[0x140004a2020]} 
# project does not exist

/bin/harbor project delete elliot --force
ERRO[0000] failed to list repositories: [GET /projects/{project_name}/repositories][404] listRepositoriesNotFound  &{Errors:[0x140002ef560]} 
ERRO[0000] failed to delete project: [GET /projects/{project_name}/repositories][404] listRepositoriesNotFound  &{Errors:[0x140002ef560]} 


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

No branches or pull requests

1 participant