better error messages for bad lua pages