Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from invalid JSON is silently ignored #12

Open
sjungwirth opened this issue Oct 25, 2017 · 0 comments
Open

Error from invalid JSON is silently ignored #12

sjungwirth opened this issue Oct 25, 2017 · 0 comments

Comments

@sjungwirth
Copy link

sjungwirth commented Oct 25, 2017

Cryptex/src/index.js

Lines 168 to 172 in 820187e

try {
this._confFile = _.clone(require(path.resolve(this._opts.file)), true)
} catch (e) {
this._confFile = {}
}

What do you think about throwing a UserError here if e.name === "SyntaxError"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant