From df671621e90a290e9f20e842e0b6a6e00c361569 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Wed, 19 Feb 2020 17:47:16 +0300 Subject: [PATCH] Mention log file if an error happened before building, too --- plugins/python-build/bin/python-build | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index f5f29726..41143e62 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -128,13 +128,13 @@ build_failed() { if ! rmdir "${BUILD_PATH}" 2>/dev/null; then echo "Inspect or clean up the working tree at ${BUILD_PATH}" + fi - if file_is_not_empty "$LOG_PATH"; then - colorize 33 "Results logged to ${LOG_PATH}" - printf "\n\n" - echo "Last 10 log lines:" - tail -n 10 "$LOG_PATH" - fi + if file_is_not_empty "$LOG_PATH"; then + colorize 33 "Results logged to ${LOG_PATH}" + printf "\n\n" + echo "Last 10 log lines:" + tail -n 10 "$LOG_PATH" fi } >&3 exit 1