diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2016-08-02 14:45:47 +0100 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2016-08-09 14:37:28 -0400 |
commit | 4b1334a665bf13ab9d31b5d51db66949bd4d55d3 (patch) | |
tree | 672c9b6d1395ddd0229d2fdd0fea06c0c36888fb | |
parent | 38c6376cc8b4ea0f329799a70ba62375a137f774 (diff) |
git-phab: Expand error message if repository cannot be found
It’s more likely due to the git remote URI being outdated than anything
else.
Reviewed-by: Thibault Saunier <tsaunier@gnome.org>
Differential Revision: https://phabricator.freedesktop.org/D1238
-rwxr-xr-x | git-phab | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -567,7 +567,6 @@ Paste API Token from that page and press <enter>: """ % self.phabricator_uri) assert(len(reply) == 1) self.phab_repo = reply[0] else: - for phab_repo in self.phabricator.repository.query(): if self.phab_repo: break @@ -579,7 +578,9 @@ Paste API Token from that page and press <enter>: """ % self.phabricator_uri) if not self.phab_repo: self.die("Could not determine Phabricator repository\n" - "You should set 'repository.callsign' in '.arcconfig'") + "You should check your git remote URIs match those " + "in Phabricator, or set 'repository.callsign' in " + "'.arcconfig'") if self.phab_repo.get("staging"): self.staging_url = self.phab_repo.get("staging").get("uri") |