Skip to content

Commit 621ddca

Browse files
committed
Merge pull request rbenv#66 from grosser/show-log-on-fail
show log excerpt when failed -- fast debugging
2 parents 4929d35 + 04d105d commit 621ddca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/ruby-build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ build_failed() {
2929
echo
3030
echo "Inspect or clean up the working tree at ${TEMP_PATH}"
3131
echo "Results logged to ${LOG_PATH}"
32-
echo
32+
echo "Last 10 log lines:"
33+
tail -n 10 $LOG_PATH
3334
} >&3
3435
exit 1
3536
}

0 commit comments

Comments
 (0)