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
[x] npm test passes (tip: npm run lint-fix can correct most style issues)
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
npm test
passes (tip:npm run lint-fix
can correct most style issues)