return error in SetTags if there is one