fix error handling in rpm_byrpmdbid