Cppcheck error check.
added return after lua*_error