catch generate errors, duh

This commit is contained in:
AJ ONeal 2018-11-24 19:03:26 -07:00
parent bb272a9689
commit 7a1df742aa
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ if (-1 !== [ 'jwk', 'pem', 'json', 'der', 'pkcs1', 'pkcs8', 'spki' ].indexOf(inf
}).then(function (key) {
console.log(key.private);
console.log(key.public);
}).catch(function (err) {
console.error(err);
process.exit(1);
});
return;
}