add simple error reporting for lua