Skip to content

Wrap API Endpoints with Standard Try-Catch #283

Description

@Abdulazeem-code

Description

Prevent unhandled promise rejections from crashing the server.

Acceptance Criteria

  • All async route handlers are wrapped in an error handler utility
  • No raw try-catch blocks in every route

Implementation Steps

  1. Create an express-async-handler equivalent utility
  2. Wrap all existing endpoints

Branching Instructions

Please create a branch from main following this naming convention:
refactor/async-handler

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions