add lua error message assertion