Skip to content

fix: await mongoose.connect to properly catch connection errors#69

Open
Olexandr88 wants to merge 1 commit into0xProject:mainfrom
Olexandr88:main
Open

fix: await mongoose.connect to properly catch connection errors#69
Olexandr88 wants to merge 1 commit into0xProject:mainfrom
Olexandr88:main

Conversation

@Olexandr88
Copy link

mongoose.connect() is async, so without await the try/catch block doesn't catch connection errors. This ensures the app properly handles MongoDB connection failures instead of failing silently or causing unhandled promise rejections.

@vercel
Copy link
Contributor

vercel bot commented Feb 12, 2026

@Olexandr88 is attempting to deploy a commit to the 0x Eng Team on Vercel.

A member of the Team first needs to authorize it.

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