Clarify common 500 errors

This commit is contained in:
Brendan Reilly
2021-07-14 13:58:29 -04:00
parent 889a20990f
commit 39add4382c
5 changed files with 10 additions and 8 deletions

View File

@@ -48,7 +48,9 @@ def publish(topic, msg, conf, service):
return rv
except Exception:
messaging_tx_failed_counter.inc()
raise
raise RuntimeError(
"Unable to send message to backend %r" % conf.messaging
)
def _fedmsg_publish(topic, msg, conf, service):

View File

@@ -226,7 +226,7 @@ class SCM(object):
"checkout: The requested commit hash was not found within the repository. "
"Perhaps you forgot to push. The original message was: %s" % str(e)
)
raise
raise RuntimeError("Unable to checkout module from SCM: %s" % e)
timestamp = SCM._run(["git", "show", "-s", "--format=%ct"], chdir=self.sourcedir)[1]
self.version = provide_module_stream_version_from_timestamp(timestamp=timestamp)