Skip to content

Commit

Permalink
Merge pull request #105 from pelias/add-git-lfs-error-message
Browse files Browse the repository at this point in the history
added helpful error message about git-lfs
  • Loading branch information
trescube authored Jun 30, 2016
2 parents 08bd4a6 + 08f5b34 commit e01c40d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/loadJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module.exports.create = function create_json_parse_stream(dataDirectory) {
return JSON.parse(fs.readFileSync(dataDirectory + record.path));
} catch (err) {
console.error('exception on %s:', record.path, err);
console.error('Inability to parse JSON usually means that WOF has been cloned ' +
'without using git-lfs, please see instructions here: ' +
'https://github.com/whosonfirst/whosonfirst-data#git-and-large-files');
return {};
}
});
Expand Down

0 comments on commit e01c40d

Please sign in to comment.