IBM / node-sdk-core

The node-sdk-core repository contains core functionality required by code generated by the IBM OpenAPI SDK Generator.
Apache License 2.0
19 stars 24 forks source link

fix: use consistent message for JSON.parse() errors #243

Closed padamstx closed 1 year ago

padamstx commented 1 year ago

This commit modifies the RequestWrapper.ensureJSONResponseBodyIsObject() function so that the thrown exception will have an error message that is consistent with the other cores. As part of this change, the thrown exception will also contain information about the specific "causedBy" exception that was caught from JSON.parse().

Checklist
ibm-devx-sdk commented 1 year ago

:tada: This PR is included in version 4.0.6 :tada:

The release is available on:

Your semantic-release bot :package::rocket: