Integration Praxis

Understanding through practice

1/5
Code The Error Structure
Context Structured Errors

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

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