Make changelog "invalid line" errors include filename and location

e.g. for merge conflicts
develop
lethosor 2021-09-01 23:35:57 -04:00
parent 0d14a2ccef
commit 7c572ceec3
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 1 additions and 1 deletions

@ -146,7 +146,7 @@ def parse_changelog():
'%s:%i: Sub-entry without parent' % (fpath, line_id)) '%s:%i: Sub-entry without parent' % (fpath, line_id))
last_entry.children.append(line.strip('- \n')) last_entry.children.append(line.strip('- \n'))
else: else:
raise ValueError('Invalid line: ' + line) raise ValueError('%s:%i: Invalid line: %s' % (fpath, line_id, line))
if not entries: if not entries:
raise RuntimeError('No changelog files with contents found') raise RuntimeError('No changelog files with contents found')