catch generate errors, duh

This commit is contained in:
AJ ONeal 2018-11-24 19:03:26 -07:00
parent bb272a9689
commit 7a1df742aa

View file

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