summaryrefslogtreecommitdiffstatshomepage
path: root/tools/makemanifest.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-08-08 14:46:05 +1000
committerDamien George <damien@micropython.org>2020-08-08 14:46:05 +1000
commitb731bd0ce6f05796dd642804bf2469646d7a063c (patch)
treea61b2e266d7d7b08a6a43ed9132cf16584a0e217 /tools/makemanifest.py
parent9883d8e818feba112935676eb5aa4ce211d7779c (diff)
downloadmicropython-b731bd0ce6f05796dd642804bf2469646d7a063c.tar.gz
micropython-b731bd0ce6f05796dd642804bf2469646d7a063c.zip
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>
Diffstat (limited to 'tools/makemanifest.py')
-rw-r--r--tools/makemanifest.py3
1 files changed, 2 insertions, 1 deletions
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)