Skip to content

Update hmac.js to include a better error for undefined key#494

Open
guffelman wants to merge 1 commit intobrix:developfrom
guffelman:patch-1
Open

Update hmac.js to include a better error for undefined key#494
guffelman wants to merge 1 commit intobrix:developfrom
guffelman:patch-1

Conversation

@guffelman
Copy link

When key is undefined, the user of the package will get the error

Cannot read property 'sigBytes' of undefined

This fix prevents that and returns an error that says that the key is undefined.

When key is undefined, the user of the package will get the error 

`Cannot read property 'sigBytes' of undefined`

This fix prevents that and returns an error that says that the key is undefined.
@guffelman
Copy link
Author

This should resolve #85 .

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

Successfully merging this pull request may close these issues.

1 participant