Issue #269 Better error message if metadata.json is bad