Skip to content

Commit

Permalink
Add option.dsn check
Browse files Browse the repository at this point in the history
Fixes #17
  • Loading branch information
dariye committed Mar 22, 2018
1 parent 487d571 commit 882d01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = function sentry (moduleOptions) {
}, this.options.sentry, moduleOptions)

// Don't proceed if no keys are provided
if (!options.public_key && !options.private_key) {
if (!options.dsn && !options.public_key && !options.private_key) {
/* eslint-disable no-console */
console.info('nuxt:sentry disabled because no (private) key was found')
/* eslint-enable no-console */
Expand Down

0 comments on commit 882d01d

Please sign in to comment.