@itentialopensource/adapter-utils 5.10.23 → 5.10.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -209,7 +209,7 @@ function handleRestRequest(request, entityId, entitySchema, callProperties, filt
209
209
  retError = JSON.parse(perror.response.trim());
210
210
  } catch (ex) {
211
211
  // otherwise log parse failure but still return the unparsed error
212
- log.warn(`${origin}: An error occurred parsing the error JSON: ${ex}: Error Response is: ${perror}`);
212
+ log.warn(`${origin}: An error occurred parsing the error JSON: ${ex}: Error Response is: ${perror.response}`);
213
213
  }
214
214
  }
215
215
  }
@@ -454,7 +454,7 @@ function handleRestRequest(request, entityId, entitySchema, callProperties, filt
454
454
  retResponse = JSON.parse(resObj.response.trim());
455
455
  } catch (ex) {
456
456
  // otherwise log parse failure and return the unparsed response
457
- log.warn(`${origin}: An error occurred parsing the resulting JSON: ${ex}: Actual Response is: ${resObj}`);
457
+ log.warn(`${origin}: An error occurred parsing the resulting JSON: ${ex}: Actual Response is: ${resObj.response}`);
458
458
  return callback(retObject);
459
459
  }
460
460
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-utils",
3
- "version": "5.10.23",
3
+ "version": "5.10.24",
4
4
  "description": "Itential Adapter Utility Libraries",
5
5
  "scripts": {
6
6
  "postinstall": "node utils/setup.js",