Yes it does.
If an error occurred, luaL_dofile() returns True.
If there were no errors, luaL_dofile() returns False.
http://pgl.yoyo.org/luai/i/luaL_dofile
If an error occurred, luaL_dofile() returns True.
If there were no errors, luaL_dofile() returns False.
http://pgl.yoyo.org/luai/i/luaL_dofile