tools/makemanifest.py: Print nicely formatted errors from mpy-cross.

If mpy-cross exits with an error be sure to print that error in a way that
is readable, instead of a long bytes object.

Signed-off-by: Damien George <damien@micropython.org>
pull/6322/head
Damien George 2020-08-08 14:46:05 +10:00
rodzic 9883d8e818
commit b731bd0ce6
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -288,7 +288,8 @@ def main():
+ ["-o", outfile, "-s", script, "-O{}".format(opt), infile]
)
if res != 0:
print("error compiling {}: {}".format(infile, out))
print("error compiling {}:".format(infile))
sys.stdout.buffer.write(out)
raise SystemExit(1)
ts_outfile = get_timestamp(outfile)
mpy_files.append(outfile)