Skip to content

Commit

Permalink
compatible with the message output to stdout when stderr has no messa…
Browse files Browse the repository at this point in the history
…ge (#30)

* compatible with the message output to stdout when stderr has no message
Fixes #29

* 0.7.10
  • Loading branch information
binsee authored Apr 20, 2022
1 parent dd86290 commit 67b2522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/pre-push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ process.exit(42)
function checkReturn (ret: ShellString) {
if (ret.code !== 0) {
const line = '------------------------------------------'
console.error(`Error:\n${line}\n\n${ret.stderr}\n\n${line}\n`)
console.error(`Error:\n${line}\n\n${ret.stderr || ret.stdout}\n\n${line}\n`)
process.exit(1)
}
return ret
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatie/git-scripts",
"version": "0.7.9",
"version": "0.7.10",
"description": "Git Hooks Integration for Chatie Projects",
"directories": {
"doc": "docs",
Expand Down

0 comments on commit 67b2522

Please sign in to comment.