goodybag / cater-api-server

hacking this together as fast as possible but with an eye for re-organization
1 stars 0 forks source link

Client-side rollbar reports #2368

Closed L8D closed 8 years ago

jrf0110 commented 8 years ago

I'm actually not seeing exceptions caught in rollbar. Is there something I need to do locally to see errors in goodybag-cater-dev?

L8D commented 8 years ago

@jrf0110 are you just trying to throw in the console? Try setTimeout(() => { throw ...; }); and it'll get caught

jrf0110 commented 8 years ago

Got it!

jrf0110 commented 8 years ago

Dangit, rollbar doesn't capture the original error message

L8D commented 8 years ago

@jrf0110 it's weird and hit-or-miss. When I went in and added errors to backbone views and init scripts, it captured them just fine. In the console, the stack traces and introspection goes out the window for some reason.

L8D commented 8 years ago

@jrf0110 for example: https://rollbar.com/Goodybag/goodybag-cater-dev/items/2921/

jrf0110 commented 8 years ago

Gotcha. Well, this looks good! 👍