mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-05-02 22:49:52 +08:00
Clarify common 500 errors
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user