Просмотр исходного кода

Merge pull request #1537 from native-api/mention_log

Mention log file if an error happened before building, too
pull/1955/head
native-api 5 лет назад
committed by GitHub
Родитель
Сommit
ca2032452b
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
1 измененных файлов: 6 добавлений и 6 удалений
  1. +6
    -6
      plugins/python-build/bin/python-build

+ 6
- 6
plugins/python-build/bin/python-build Просмотреть файл

@ -130,13 +130,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

Загрузка…
Отмена
Сохранить