Mercurial > gub
changeset 3458:46004d176eee
helpful message in raise
author | Han-Wen Nienhuys <hanwen@lilypond.org> |
---|---|
date | Thu, 10 May 2007 01:57:27 -0300 |
parents | a726a656f0b8 |
children | 6ef6a2477166 |
files | gub/gubb.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/gubb.py Wed May 09 23:51:45 2007 -0300 +++ b/gub/gubb.py Thu May 10 01:57:27 2007 -0300 @@ -219,10 +219,8 @@ def version (self): # kugh, must construct using vc_repository in __init__ if not self.vc_repository : - print 'need version, but repository not yet set:', self.name () - print 'type:', type (self) - print 'class:', self.__class__ - raise Exception ('urg') + msg = 'need version, but repository not yet set: %s, type: %s class: %s' % (self.name (), type (self), self.__class__) + raise Exception (msg) return self.vc_repository.version () @subst_method