repoQuery() should check for error when receiving data.