# HG changeset patch # User Jeff Hammel # Date 1320112426 25200 # Node ID 4ea66cb5485d165f59530ff9728c7ae2179091fa # Parent 920afc0799059138a2aa201a09c67fa01d245211 better error message diff -r 920afc079905 -r 4ea66cb5485d buttercup/source.py --- a/buttercup/source.py Sun Oct 16 17:21:37 2011 -0700 +++ b/buttercup/source.py Mon Oct 31 18:53:46 2011 -0700 @@ -38,8 +38,12 @@ if os.path.exists(self.directory()): hgdir = os.path.join(self.directory(), '.hg') assert os.path.exists(hgdir), "Not an hg directory: %s" % hgdir - call(['hg', 'pull'], cwd=self.directory()) - call(['hg', 'update'], cwd=self.directory()) + try: + call(['hg', 'pull'], cwd=self.directory()) + call(['hg', 'update'], cwd=self.directory()) + except: + print 'Directory: %s' % self.directory() + raise else: if not os.path.exists(self.srcdir): os.makedirs(self.srcdir)