Ver código fonte

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 anos atrás
committed by GitHub
pai
commit
ca2032452b
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 6 adições e 6 exclusões
  1. +6
    -6
      plugins/python-build/bin/python-build

+ 6
- 6
plugins/python-build/bin/python-build Ver arquivo

@ -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

Carregando…
Cancelar
Salvar