more helpful error messages for formula writing