[Buildbot-commits] [Buildbot] #2491: gitpoller doesn't provide enough of a clue when branch doesn't exist

Buildbot trac trac at buildbot.net
Thu Apr 18 18:49:58 UTC 2013


#2491: gitpoller doesn't provide enough of a clue when branch doesn't exist
------------------------+-----------------------
Reporter:  dank         |      Owner:
    Type:  enhancement  |     Status:  new
Priority:  minor        |  Milestone:  undecided
 Version:  0.8.7p1      |   Keywords:
------------------------+-----------------------
 Masters with many projects using gitpoller will sometimes be
 misconfigured to poll a git repo that lacks a 'master' branch.
 The error in this case is shown in the log as

         exceptions.EnvironmentError: command failed with exit code 128:
 fatal: Couldn't find remote ref master

 with no clue which project or repo is to blame.  Adding the repourl
 to the error message, a la

 -                raise EnvironmentError('command failed with exit code %d:
 %s'
 -                        % (code, stderr))
 +                raise EnvironmentError('command on repourl %s failed with
 exit code %d: %s'
 +                        % (self.repourl, code, stderr))

 makes the error message much more helpful.

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2491>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list