Summary
Disabled by default to prevent any breaking changes. Enable it by passing this boolean in the REST client constructor:
const client = new RestClientV5({
key: key,
secret: secret,
throwExceptions: true,
});
Any retCode !== 0 response will be thrown in full, if enabled.
What's Changed
- feat(#437): add config to throw REST API exceptions automatically by @tiagosiebler in #483
Full Changelog: v4.2.7...v4.3.0