Make the unrecognized exception more verbose

If the gerrit config normalizer comes across an unrecognized line, add
the bad line to the exception message for debugging.

Change-Id: I60e77a0b50718fb331bad0836ca769f685e6ce93
This commit is contained in:
K Jonathan Harker 2015-03-31 14:15:26 -07:00
parent 43c8c5e8b9
commit c7b2df83ba
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ for line in aclfd:
acl[section].append(line)
# WTF
else:
raise Exception('Unrecognized line!')
raise Exception('Unrecognized line: "%s"' % line)
aclfd.close()
if '2' in transformations: