Skip to content

Commit

Permalink
fix(cli): output to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Mar 10, 2020
1 parent bcbdb33 commit 2dc4670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli-check-branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const run = async (input = cli.input, flags = cli.flags) => {
return shouldDelete(branchName, { includesBranchPatterns, excludesBranchPatterns });
});
if (deletedBranchNames.length > 0) {
return { exitStatus: 1, stderr: new Error(`${deletedBranchNames.join(",")} will be deleted`), stdout: null };
return { exitStatus: 1, stderr: null, stdout: `${deletedBranchNames.join(",")} will be deleted` };
} else {
return { exitStatus: 0, stderr: null, stdout: `${input.join(",")} will not be deleted` };
}
Expand Down

0 comments on commit 2dc4670

Please sign in to comment.