Skip to content

Commit c5fec0e

Browse files
committed
Even more tests
Signed-off-by: Piyush Ajmani <[email protected]>
1 parent 61f6ace commit c5fec0e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

shortlr

+5-3
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ else if (process.argv[2] !== '-s') {
4646
PostCode(str, secret, customShortcode);
4747
}
4848

49+
console.log("Pushing code to " + remote + " " + branch);
4950
exec('git push ' + remote + ' ' + branch, function (error, stdout, stderr) {
50-
console.log("Pushing code to " + remote + " " + branch);
51-
let s = `${stdout}`;
52-
console.log(s);
51+
if(error){
52+
console.error(`exec error: ${error}`);
53+
return;
54+
}
5355
})
5456
});
5557

0 commit comments

Comments
 (0)