Improve DX error message for scripts/apidoc/signature.ts
#1685
Labels
c: docs
Improvements or additions to documentation
p: 1-normal
Nothing urgent
s: accepted
Accepted feature / Confirmed bug
Milestone
Clear and concise description of the problem
While running
pnpm run generate:api-docs
I got an error like thisSuggested solution
Instead of
TypeError: Cannot read properties of undefined (reading 'signatures')
we should try to provide a message about what happend and why this error occursAlternative
No response
Additional context
Currently the error is terrible DX and a potential contributor could decide to just stop working on a PR and we would loose potential contributions
The text was updated successfully, but these errors were encountered: