lua-users home
lua-l archive

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


> > 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