Skip to content

RM-169: Add error messages to all the API errors#50

Merged
BenHall-1 merged 1 commit intoTicketsBot-cloud:masterfrom
biast12:api-errors
Oct 23, 2025
Merged

RM-169: Add error messages to all the API errors#50
BenHall-1 merged 1 commit intoTicketsBot-cloud:masterfrom
biast12:api-errors

Conversation

@biast12
Copy link
Copy Markdown
Contributor

@biast12 biast12 commented Oct 23, 2025

Description

RM-169
Replaces internal error responses with more user-friendly and descriptive error messages across all API endpoints. Standardizes the use of utils.ErrorStr for error responses, provides clearer feedback for invalid input, and improves consistency in error handling. This enhances the user experience and makes debugging easier for API consumers.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Improvements

Testing

I used Insomnia to manually test the calls

Checklist

  • My code follows the style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

Replaces internal error responses with more user-friendly and descriptive error messages across all API endpoints. Standardizes the use of utils.ErrorStr for error responses, provides clearer feedback for invalid input, and improves consistency in error handling. This enhances the user experience and makes debugging easier for API consumers.
@biast12 biast12 requested a review from a team as a code owner October 23, 2025 15:41
Copy link
Copy Markdown
Member

@BenHall-1 BenHall-1 left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks for this - should really help the user experience

@BenHall-1 BenHall-1 merged commit 3fbe84c into TicketsBot-cloud:master Oct 23, 2025
@biast12 biast12 deleted the api-errors branch October 23, 2025 17:25
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.

2 participants