From 6fc5a6c9b180dded9f54f2420c41636961bef475 Mon Sep 17 00:00:00 2001 From: mprahl Date: Mon, 6 Nov 2017 09:18:40 -0500 Subject: [PATCH] Clean up error message in get_module_yaml --- module_build_service/scm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module_build_service/scm.py b/module_build_service/scm.py index bf7f0fc1..4098197a 100644 --- a/module_build_service/scm.py +++ b/module_build_service/scm.py @@ -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):