[api] better error message on broken createrepo's