[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: error handling
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 21 Dec 2012 11:42:40 -0200
> > Or better yet, call lua_error in the first place (instead of throwing
> > a C++ exception). In Lua, you can catch such errors with 'pcall'.
>
>
> Can I catch this error on the Lua script? [...]
> > ................. In Lua, you can catch such errors with 'pcall'.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-- Roberto