Skip to content

Commit 7aaae02

Browse files
authored
fix(git-node): output vote keyPart to stdout, not stderr (#941)
Useful when piping to another command.
1 parent a7d21f7 commit 7aaae02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/voting_session.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default class VotingSession extends Session {
111111
out.toString('base64') +
112112
'\n-----END SHAMIR KEY PART-----';
113113
this.cli.log('Your key part is:');
114-
this.cli.log(keyPart);
114+
console.log(keyPart); // Using `console.log` so this gets output to stdout, not stderr.
115115
const body = 'I would like to close this vote, and for this effect, I\'m revealing my ' +
116116
`key part:\n\n${'```'}\n${keyPart}\n${'```'}\n`;
117117
if (this.postComment) {

0 commit comments

Comments
 (0)