catch error when parsing collection.json