Log error message when SRPM cannot be created from SCM

This commit is contained in:
Jan Kaluza
2017-01-28 16:08:30 +01:00
parent c51adf1796
commit f7e5dd1f49

View File

@@ -1343,6 +1343,9 @@ def build_from_scm(artifact_name, source, config, build_srpm):
source = os.path.join(cod, f)
ret = build_srpm(artifact_name, source)
break
except Exception as e:
log.error("Error while generating SRPM for artifact %s: %s" % (
artifact_name, str(e)))
finally:
os.chdir(owd)
try: