adityakalburgi / adityakalburgi/Travel_ageny_website

[Feature ]: add a asyncHandler utility for code optimization

オープン
#43 コメント 3 件 リアクション 0 件 担当者 1 名 @swayam03275 が担当を希望しています GitHub で見る
Gssoc'25 level1
主要言語
JavaScript
スター
9
フォーク
20
PR マージ指標
30日以内にマージされた PR はありません

説明

Introduce a reusable asyncHandler utility function to streamline error handling in asynchronous route controllers across the backend codebase. This utility will help eliminate repetitive try-catch blocks and improve code readability and maintainability.

✅ Objective:
Wrap all async controller functions using asyncHandler to automatically catch and forward errors to the error-handling middleware.

Enhance consistency and reduce boilerplate in controller files.

💡 Benefit:
Cleaner controller code.

Centralized error handling.

Easier debugging and maintenance.

@adityakalburgi plzz assign this issue to me i would like to contribute

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。