From fb7950bef8daf8ac5a75ca67379398fed1720f7b Mon Sep 17 00:00:00 2001 From: Fabian Kreutz Date: Sat, 6 Jul 2013 17:12:57 +0300 Subject: [PATCH] Europython sprint: Typo and better error message for missing version definition --- buildozer/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildozer/__init__.py b/buildozer/__init__.py index f44071f..628e589 100644 --- a/buildozer/__init__.py +++ b/buildozer/__init__.py @@ -498,7 +498,8 @@ class Buildozer(object): match = search(regex, data) if not match: 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] self.debug('Captured version: {0}'.format(version)) return version