Skip to main content

Integration Praxis

Learn by doing. Each exercise reveals a pattern you'll use in real projects.

1/5
Code The Error Structure
What to Try Structured Errors

The situation: You're building an email integration. When Gmail returns an error, users see "[object Object]" instead of useful information.

Your task: Fix the error handler to display the actual error message.

The ActionResult type has an `error` field. Run the code and observe what `console.log(result.error)` outputs.

Output
Run code to see output