jazzdotdev / jazz

The Scripting Engine that Combines Speed, Safety, and Simplicity
Apache License 2.0
145 stars 11 forks source link

catch errors and log a stack trace #40

Open naturallymitchell opened 6 years ago

naturallymitchell commented 6 years ago

currently, we have try-catch. https://github.com/foundpatterns/torchbear/blob/2b7737008f925b793dff466dbdd508ece9baacf5/src/managers/web_server.lua#L8-L21

if we https://github.com/kyren/rlua/issues/88 , we can get a stack trace.

error message can go in log.error().

naturallymitchell commented 6 years ago

@Arnaz87 anything left here?

Arnaz87 commented 6 years ago

fixed at some point, by using xpcall in here and here

naturallymitchell commented 6 years ago

:+1: