bom.py now shows errors and warnings.

This commit is contained in:
Chris Palmer 2020-03-02 09:38:37 +00:00
parent 7706716fa2
commit 9fbdb82991
1 changed files with 3 additions and 0 deletions

View File

@ -184,6 +184,9 @@ def parse_bom(file = "openscad.log", name = None):
main.add_part(s)
if stack:
main.assemblies[stack[-1]].add_part(s)
else:
if 'ERROR:' in line or 'WARNING:' in line:
print(line[:-1])
return main
def boms(target = None, assembly = None):