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
|
@@ -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
|
}
|