catch generate errors, duh
This commit is contained in:
parent
bb272a9689
commit
7a1df742aa
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue