© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Wrapping Errors in `runPromise` and Extracting Underlying Error - Effect Community
EC
Effect Community
•
3y ago
•
22 replies
kristo
Wrapping Errors in `runPromise` and Extracting Underlying Error
Why is it that running
runPromise
runPromise
will wrap all my errors with a generic
Error
Error
class
? Is there a way to extract the underlying error out of this
? The only way I can see right now is to use
runPromiseExit
runPromiseExit
and then get the
cause.error
cause.error
and throw it manually
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Extracting Underlying Errors from FiberFailure in Effect with NestJS Integration
EC
Effect Community / 🚀-beginners
3mo ago
Extracting the Underlying Error from an Exit
EC
Effect Community / 🚀-beginners
10mo ago
Best Practices for Wrapping Errors to Reveal Underlying Issues in Logs
EC
Effect Community / 🚀-beginners
2y ago
Handling Errors in Effect.runPromise
EC
Effect Community / 🚀-beginners
16mo ago