Fix generate api (#13930)

* Add missing returncode to exit()

* fix the aozora/hotswap vendor id
This commit is contained in:
Zach White authored and GitHub committed 2021-08-09 08:28:51 -07:00
1 parent 5eb0e406fd
commit e6c171bdd6
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ def info_json(keyboard):
except jsonschema.ValidationError as e:
json_path = '.'.join([str(p) for p in e.absolute_path])
cli.log.error('Invalid API data: %s: %s: %s', keyboard, json_path, e.message)
exit()
exit(1)
# Make sure we have at least one layout
if not info_data.get('layouts'):