Commit f4c5c8a5 authored by Michal Čihař's avatar Michal Čihař

Log error before trying to handle it

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e6b9e582
...@@ -769,6 +769,11 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin): ...@@ -769,6 +769,11 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
# In case merge has failer recover # In case merge has failer recover
status = self.repository.status() status = self.repository.status()
error = str(error) error = str(error)
self.log_error(
'%s failed: %s',
self.merge_style,
error
)
method(abort=True) method(abort=True)
# Log error # Log error
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment