generated from open-format/next-js-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enhance error handling in fetchAllCommunities function
- Wrapped the fetchAllCommunities logic in try-catch blocks to improve error handling and user feedback. - Updated return values to include error messages when no chain or user is found, and when fetching on-chain communities fails. - Improved logging for better debugging and visibility of fetched data and matched communities.
- Loading branch information
1 parent
90a6bb7
commit 6804b1f
Showing
1 changed file
with
49 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters