Return the make exit code for qmk compile and flash (#11402)

This commit is contained in:
Zach White authored and GitHub committed 2021-01-02 17:27:35 +00:00
1 parent 2e9d091960
commit c07543133a
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -81,7 +81,8 @@ def flash(cli):
cli.log.info('Compiling keymap with {fg_cyan}%s', ' '.join(command))
if not cli.args.dry_run:
cli.echo('\n')
subprocess.run(command)
compile = subprocess.run(command)
return compile.returncode
else:
cli.log.error('You must supply a configurator export, both `--keyboard` and `--keymap`, or be in a directory for a keyboard or keymap.')