From b731bd0ce6f05796dd642804bf2469646d7a063c Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 8 Aug 2020 14:46:05 +1000 Subject: [PATCH] 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 --- tools/makemanifest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/makemanifest.py b/tools/makemanifest.py index 6779198c47..b7d4a4d4a6 100644 --- a/tools/makemanifest.py +++ b/tools/makemanifest.py @@ -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)