cli: Print compile errors to stderr

This commit is contained in:
Sonny Piers 2023-01-05 00:51:02 +01:00
parent 59aa054c4c
commit 40f493b378
2 changed files with 4 additions and 4 deletions

View file

@ -104,7 +104,7 @@ class BlueprintApp:
with open(opts.output, "w") as file:
file.write(xml)
except PrintableError as e:
e.pretty_print(opts.input.name, data)
e.pretty_print(opts.input.name, data, stream=sys.stderr)
sys.exit(1)
def cmd_batch_compile(self, opts):