During the running the mass-rebuild for Fedora/s390x I have found that it would be useful if koji-cli could return also the reason for failed task. Same information can be seen in taskinfo web interface. Usually build failure with details in root.log means some missing/broken dependency in buildroot, details in build.log mean a real failure where a manual inspection is needed, etc.
The result is in the attached patch.
Dan
buildsys@lists.fedoraproject.org