Skip to content

Commit 67b2522

Browse files
authored
compatible with the message output to stdout when stderr has no message (#30)
* compatible with the message output to stdout when stderr has no message Fixes #29 * 0.7.10
1 parent dd86290 commit 67b2522

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/pre-push.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ process.exit(42)
109109
function checkReturn (ret: ShellString) {
110110
if (ret.code !== 0) {
111111
const line = '------------------------------------------'
112-
console.error(`Error:\n${line}\n\n${ret.stderr}\n\n${line}\n`)
112+
console.error(`Error:\n${line}\n\n${ret.stderr || ret.stdout}\n\n${line}\n`)
113113
process.exit(1)
114114
}
115115
return ret

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chatie/git-scripts",
3-
"version": "0.7.9",
3+
"version": "0.7.10",
44
"description": "Git Hooks Integration for Chatie Projects",
55
"directories": {
66
"doc": "docs",

0 commit comments

Comments
 (0)