Europython sprint: Typo and better error message for missing version definition

This commit is contained in:
Fabian Kreutz 2013-07-06 17:12:57 +03:00
parent 14fb039b99
commit fb7950bef8

View file

@ -498,7 +498,8 @@ class Buildozer(object):
match = search(regex, data) match = search(regex, data)
if not match: if not match:
raise Exception( raise Exception(
'Unable to found capture version in {0}'.format(fn)) 'Unable to find capture version in {0}\n'
' (looking for `{1}`)'.format(fn, regex))
version = match.groups()[0] version = match.groups()[0]
self.debug('Captured version: {0}'.format(version)) self.debug('Captured version: {0}'.format(version))
return version return version