Skip to content

Commit

Permalink
component: Show error text on failed push
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed May 15, 2023
1 parent 167d8c2 commit dd1e420
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion weblate/trans/models/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,12 @@ def push_repo(self, request, retry=True):
else:
return self.push_repo(request, retry=False)
messages.error(
request, _("Could not push to remote branch on %s.") % self
request,
_("Failed to push %(component)s: %(error_text)s")
% {
"component": self,
"error_text": error_text,
},
)
self.add_alert("PushFailure", error=error_text)
return False
Expand Down

0 comments on commit dd1e420

Please sign in to comment.