Skip to content

Fix CI for July release: restore custom SquareError error parsing#244

Closed
menglinblock wants to merge 3 commits into
square:fern-bot/2026-07-13_21-30-55_019from
menglinblock:menglin/fix-ci-2026-07-15
Closed

Fix CI for July release: restore custom SquareError error parsing#244
menglinblock wants to merge 3 commits into
square:fern-bot/2026-07-13_21-30-55_019from
menglinblock:menglin/fix-ci-2026-07-15

Conversation

@menglinblock

Copy link
Copy Markdown
Contributor

Summary

  • The July 2026 regeneration (fern-typescript-sdk 3.73.4) overwrote src/errors/SquareError.ts, dropping the custom error-parsing behavior added in fc20c0d0 ("Add custom SquareError handling"): the errors array, SquareError.ErrorCategory / SquareError.ErrorCode, and v1/v2 error body parsing. This broke tests/unit/error.test.ts (the test job on SDK regeneration #243).
  • Restores that custom behavior on top of the newly generated base class (keeps the new new.target.prototype, captureStackTrace, and name handling).

Verified locally: yarn build and yarn test:unit pass (644/644 tests, including tests/unit/error.test.ts).

This PR targets the fern-bot/2026-07-13_21-30-55_019 release branch so #243 goes green once merged. Since this file keeps getting reverted by regeneration, it may be worth adding it to .fernignore upstream.

Made with Cursor

fern-api Bot and others added 3 commits July 13, 2026 21:30
Generated by Fern
CLI Version: unknown
Generators:
  - fernapi/fern-typescript-sdk: 3.73.4
Co-authored-by: Cursor <cursoragent@cursor.com>
@menglinblock menglinblock mentioned this pull request Jul 13, 2026
@fern-api
fern-api Bot force-pushed the fern-bot/2026-07-13_21-30-55_019 branch from f846323 to 9ee0a8f Compare July 14, 2026 16:58
@menglinblock

Copy link
Copy Markdown
Contributor Author

🤖 Fix re-applied directly to the fern-bot branch (fern-bot/2026-07-13_21-30-55_019); closing this stale PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant