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:
parent
43c8c5e8b9
commit
c7b2df83ba
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue