Skip to content

Commit

Permalink
feature[setler-cli]: fix log?
Browse files Browse the repository at this point in the history
  • Loading branch information
mankins committed Sep 1, 2023
1 parent 02cedbb commit f49a683
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions identity-wallet/setler-cli/src/actions/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,14 +461,14 @@ const exec = async (context) => {
text: `Verifying code...`,
});

log(verifyAuthCode);
// log(verifyAuthCode);
try {
data = JSON.parse(verifyAuthCode.response?.out);
} catch (e) {
log(chalk.red("Error parsing response from server."));
process.exit(1);
}

log(data);
break;
}
case "github":
Expand Down
3 changes: 2 additions & 1 deletion identity-wallet/setler-cli/src/actions/ns.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,13 +590,14 @@ const exec = async (context) => {
text: `Verifying code...`,
});

log(verifyAuthCode);
// log(verifyAuthCode);
try {
data = JSON.parse(verifyAuthCode.response?.out);
} catch (e) {
log(chalk.red("Error parsing response from server."));
process.exit(1);
}
log(data);

break;
}
Expand Down

0 comments on commit f49a683

Please sign in to comment.