lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


lol, i just realized that it still wont solve ur problem :D my error
handler could also fail if it wouldnt be ensured more or less that
those will be fine when i reach the point of using this... otoh i
should think about using xpcall after a sleep, maybe its a thing for
me as well! :D

otherwise just make a protected error handler so if u have an error in
that, ull see that, otherwise if it works and u have an error that is
captured by it, then ull see that, but no crash will stop the show

(pro tip: if the protector of ur protector could also fail, then
protect that as well X'D )

my technique is to run a test instance before saving the core of my
app, if that will fail, then ill see the error in the original app,
otherwise it will make the new version of itself permanently saved.
the wrapper that ive talked about is a different beast for protecting
against errors i could make after once its already up and running :D