Browse files

Handle cleanly failure to push to try.

  • Loading branch information...
1 parent d5078e0 commit 8dcbc93ae382a13f756cabcf7f3e46888c00e985 @mounirlamouri mounirlamouri committed Aug 13, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 trychooser
@@ -461,7 +461,10 @@ For all questions, choosing Y means adding something to the TryChooser string. C
ui.write(_("View the results of your push at\n") % (repo[None].p1()))
ui.write(_("Push to try server...\n"))
- commands.push(ui, repo, "ssh://", force=True)
+ try:
+ commands.push(ui, repo, "ssh://", force=True)
+ except:
+ ui.write("ERROR: failed to push to try server!\n");
# In Mercurial 2.1 phases support was added, and until Mozilla updates to
# this version and configures the try repository to be non-publishing, we

0 comments on commit 8dcbc93

Please sign in to comment.