Skip to content

Commit

Permalink
Merge pull request #41 from adematte/patch-1
Browse files Browse the repository at this point in the history
Fixing wrong error message
  • Loading branch information
cocojoe authored Jun 7, 2018
2 parents 195bac5 + 122fc66 commit 84d5f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrations/hapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports.hapiJwt2KeyAsync = (options) => {

module.exports.hapiJwt2Key = (options) => {
if (options === null || options === undefined) {
throw new ArgumentError('An options object must be provided when initializing expressJwtSecret');
throw new ArgumentError('An options object must be provided when initializing hapiJwt2Key');
}

const client = new JwksClient(options);
Expand Down

0 comments on commit 84d5f12

Please sign in to comment.