Skip to content

Commit

Permalink
Update make.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Aug 29, 2023
1 parent c392e20 commit 92bf768
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

import os
import os.path
import pathlib
import shutil
import platform
import glob
Expand Down Expand Up @@ -1533,6 +1534,16 @@ def main(argv):
if len(failedBuilds) > 0:
for failedBuild in failedBuilds:
print("- {} build failed!".format(failedBuild))
failedBuild_path = pathlib.Path(
"P:/temp").joinpath(f"{failedBuild}.packing.log")
if (failedBuild_path.exists()):
print(f" Log {failedBuild_path} tail:")
with open(failedBuild_path) as failedBuild_file:
lines = failedBuild_file.readlines()
for index, line in enumerate(lines[-3:]):
print(f" {len(lines) + index -2}: {line}", end='')
else:
print(f" Log {failedBuild_path} does not exist")
if len(missingFiles) > 0:
for missingFile in missingFiles:
print("- {} not found!".format(missingFile))
Expand Down

0 comments on commit 92bf768

Please sign in to comment.