Files
w4rpservices/node_modules/cosmiconfig/dist/parseJson.js
2018-10-27 03:51:47 -05:00

17 lines
297 B
JavaScript
Vendored

//
'use strict';
const parseJson = require('parse-json');
module.exports = function parseJsonWrapper(
json ,
filepath
) {
try {
return parseJson(json);
} catch (err) {
err.message = `JSON Error in ${filepath}:\n${err.message}`;
throw err;
}
};