@aptly-as/sdk-nodejs 0.2.1 → 0.2.3

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.
@@ -82,7 +82,10 @@ export class AptlyResponseError extends Error {
82
82
  return this;
83
83
  }
84
84
  toString() {
85
- return JSON.stringify(this.toJSON());
85
+ if (this.detail) {
86
+ return `${this.message}: ${this.detail}`;
87
+ }
88
+ return this.message;
86
89
  }
87
90
  res(_request, _response) {
88
91
  throw new Error('AptlyResponseError res function has not been implemented.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/sdk-nodejs",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Aptly SDK library for node.js applications",
5
5
  "type": "module",
6
6
  "main": "index.js",