createrepo_c: Better error reporting