mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-24 01:51:18 +00:00
Mention log file if an error happened before building, too
This commit is contained in:
parent
7097f8204e
commit
df671621e9
1 changed files with 6 additions and 6 deletions
|
@ -128,13 +128,13 @@ build_failed() {
|
||||||
|
|
||||||
if ! rmdir "${BUILD_PATH}" 2>/dev/null; then
|
if ! rmdir "${BUILD_PATH}" 2>/dev/null; then
|
||||||
echo "Inspect or clean up the working tree at ${BUILD_PATH}"
|
echo "Inspect or clean up the working tree at ${BUILD_PATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
if file_is_not_empty "$LOG_PATH"; then
|
if file_is_not_empty "$LOG_PATH"; then
|
||||||
colorize 33 "Results logged to ${LOG_PATH}"
|
colorize 33 "Results logged to ${LOG_PATH}"
|
||||||
printf "\n\n"
|
printf "\n\n"
|
||||||
echo "Last 10 log lines:"
|
echo "Last 10 log lines:"
|
||||||
tail -n 10 "$LOG_PATH"
|
tail -n 10 "$LOG_PATH"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
} >&3
|
} >&3
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue