lightninglabs / lightning-api-ng

Automated API-documentation generation source code for Lightning Lab's FOSS software suite
6 stars 7 forks source link

parser: gracefully handle CLI command errors #23

Closed jamaljsr closed 1 year ago

jamaljsr commented 1 year ago

Currently when executing the CLI command for a method, if the command fails then the generator will exit. This breaks the daily deployment to the public api-docs site until the issue is resolved in the source repo.

Example: https://github.com/lightninglabs/corpsite-dev/actions/runs/5720928238/job/15501697900

This PR changes the behavior to log the error instead of exiting. The CLI output won't be displayed on the site, but at least the deployment can proceed.