i18n-node icon indicating copy to clipboard operation
i18n-node copied to clipboard

Handle invalid JSON error better

Open adamreisnz opened this issue 10 years ago • 0 comments

Currently, when there's an error in the JSON (e.g. a comma too many), the i18n module fails with the following error:

TypeError: Cannot read property 'hasOwnProperty' of undefined
    at ../node_modules/i18n/i18n.js:478:37

Could you implement a check for invalid JSON / object and fail with a more descriptive error?

adamreisnz avatar Oct 17 '15 17:10 adamreisnz