Skip to content

Instantly share code, notes, and snippets.

View MichaelMag's full-sized avatar
🏠
Working from home

Michael Magbiti MichaelMag

🏠
Working from home
View GitHub Profile
@pulkitsinghal
pulkitsinghal / notes.md
Last active February 8, 2019 18:00
Loopback: How to log any errors via a global error handler?

Pitfalls

The REST adapter for strong-remoting sets up its own error handler! So you cannot accomplish this for REST API related calls by replacing:

  1. app.use(loopback.errorHandler()); in server/server.js
  2. or, loopback#errorHandler in middleware.json

So don't waste your time there.

Deeper Understanding