Skip to content

Conversation

@typerandom
Copy link
Contributor

@typerandom typerandom commented Oct 1, 2016

Fixes so that all errors are typed and documented.

How to verify

Read the docs, checkout this branch and test it with the code below:

var nJwt = require('njwt');

try {
    nJwt.create();
} catch (err) {
    if (err instanceof nJwt.SigningKeyRequiredJwtError) {
        return console.log('Signing key required!');
    }
    console.log('Unhandled error!', err);
}

Fixes #22

@coveralls
Copy link

coveralls commented Oct 1, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 5904561 on fix-error-handling into 9e177c3 on master.

@coveralls
Copy link

coveralls commented Oct 1, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 60cb403 on fix-error-handling into 9e177c3 on master.

@coveralls
Copy link

coveralls commented Oct 1, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 60cb403 on fix-error-handling into 9e177c3 on master.

@coveralls
Copy link

coveralls commented Oct 14, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 1fd51b4 on fix-error-handling into 9e177c3 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants