Clean up error message in get_module_yaml

This commit is contained in:
mprahl
2017-11-06 09:18:40 -05:00
parent 74993a4df2
commit 6fc5a6c9b1

View File

@@ -249,9 +249,9 @@ class SCM(object):
with open(path_to_yaml):
return path_to_yaml
except IOError:
raise UnprocessableEntity(
"get_module_yaml: SCM repository doesn't seem to contain a "
"module YAML file. Couldn't access: %s" % path_to_yaml)
log.error("get_module_yaml: The SCM repository doesn't contain a modulemd file. "
"Couldn't access: %s" % path_to_yaml)
raise UnprocessableEntity("The SCM repository doesn't contain a modulemd file")
@staticmethod
def is_full_commit_hash(scheme, commit):