[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: luaL_dofile(): how do I get errors?
- From: Shea Martin <shea08@...>
- Date: Wed, 31 Jan 2007 16:33:47 -0400
If my embedded interpreter encounters an error in the script, during the
dofile() routine, it just punts. dofile return a value of 1, so I know
an error was encountered, but I have no idea what the error was. There
is no error message printed, etc.
Is there any sort of way to determine what is wrong with my script, and
print a message to the user?
I don't think lua_pcall() is what I want, as it calls a function. I am
still loading the script.