Skip to content

Commit

Permalink
Return non 0 code on schema_to_md error
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosBergillos committed Mar 20, 2024
1 parent afcc374 commit 99cd400
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/jsonschema_to_md/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ def main():
JSONSchemaRenderer(logger=None).render_md(inp, out, title=title)
except (JSONSchemaError, ValidationError) as e:
logger.error(e)
return 1
except Exception as e:
logger.exception(e)

return 1
else:
return 0

if __name__ == "__main__":
main()
raise SystemExit(main())

0 comments on commit 99cd400

Please sign in to comment.