Merge "Print unparsable file in pkg-map"

This commit is contained in:
Jenkins 2016-02-04 04:47:20 +00:00 committed by Gerrit Code Review
commit 1dcd65fb9e

View File

@ -74,7 +74,11 @@ def main():
sys.exit(2) sys.exit(2)
with open(map_file) as fd: with open(map_file) as fd:
try:
package_names = json.loads(fd.read()) package_names = json.loads(fd.read())
except ValueError:
eprint('Unable to parse %s' % map_file)
raise
# Parse mapping data in this form using distro/family/default # Parse mapping data in this form using distro/family/default
# Most specific takes priority (distro is most specific). # Most specific takes priority (distro is most specific).