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

deploy baobab-api-v0.0.1.20240423.0248.2536379 #317

Merged

Conversation

nick-bisonai
Copy link
Contributor

baobab-api-v0.0.1.20240423.0248.2536379

(API) Use custom err handler instead of panic

Description

On returning error, it now uses custom error handler which returns in form of

return c.Status(code).SendString(err.Error())

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.

Deployment

  • Should publish npm package
  • Should publish Docker image

Summary by CodeRabbit

  • Refactor
    • Improved error handling across various API controllers by replacing panic responses with error returns, enhancing system stability and error management.
  • PR: 1402

@nick-bisonai nick-bisonai merged commit 86a095d into gcp-baobab-prod Apr 23, 2024
1 check passed
@nick-bisonai nick-bisonai deleted the deploy/baobab-api-v0.0.1.20240423.0248.2536379 branch April 23, 2024 06:16
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.

1 participant