We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a8abd91 + c710cb3 commit fcc59b6Copy full SHA for fcc59b6
jwt_console_project/jwtConsole.js
@@ -115,10 +115,16 @@ function prompt(prompt) {
115
116
117
async function main(){
118
- let accountInfo = await authenticate();
119
- let args = await getArgs(accountInfo.apiAccountId, accountInfo.accessToken, accountInfo.basePath);
120
- let envelopeId = await signingViaEmail.sendEnvelope(args);
121
- console.log(envelopeId);
+ try {
+ let accountInfo = await authenticate();
+ let args = await getArgs(accountInfo.apiAccountId, accountInfo.accessToken, accountInfo.basePath);
+ let envelopeId = await signingViaEmail.sendEnvelope(args);
122
+ console.log(envelopeId);
123
+ } catch (error) {
124
+ console.error('An error occurred:', error);
125
+ } finally {
126
+ readline.close();
127
+ }
128
}
129
130
main();
0 commit comments