e621-client 1.2.1 → 1.2.2

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.
@@ -121,7 +121,7 @@ class E621ApiClient {
121
121
  return null;
122
122
  }
123
123
  else {
124
- throw new Error(`Request to ${route} failed with status code ${response.status}`);
124
+ throw new Error(`Request to ${route} failed with status code ${response.status}: "${response.statusText}"`);
125
125
  }
126
126
  });
127
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "e621-client",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -187,7 +187,7 @@ export class E621ApiClient {
187
187
  return null;
188
188
  } else {
189
189
  throw new Error(
190
- `Request to ${route} failed with status code ${response.status}`,
190
+ `Request to ${route} failed with status code ${response.status}: "${response.statusText}"`,
191
191
  );
192
192
  }
193
193
  }