Skip to content

Commit ba19aa7

Browse files
committed
Fix part #308, Add stderr output if commands fail
1 parent d1a3f56 commit ba19aa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/git-subrepo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,7 @@ RUN() {
17961796

17971797
if [[ $rc -ne 0 ]]; then
17981798
OK=false
1799-
$FAIL && error "Command failed: '$*'."
1799+
$FAIL && error "Command failed: '$*'.\n$out"
18001800
fi
18011801
output="$out"
18021802
}
@@ -1854,7 +1854,7 @@ usage-error() {
18541854
# Nicely report common error messages:
18551855
error() {
18561856
local msg="git-subrepo: $1" usage=
1857-
echo "$msg" >&2
1857+
echo -e "$msg" >&2
18581858
exit 1
18591859
}
18601860

0 commit comments

Comments
 (0)