@boy-offi9-inc/tidepull 0.21.0 → 0.22.0
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.
- package/dist/core/http.js +1 -1
- package/package.json +1 -1
package/dist/core/http.js
CHANGED
|
@@ -119,7 +119,7 @@ export class Http {
|
|
|
119
119
|
const res = await this.request(url, init);
|
|
120
120
|
if (!res.ok) {
|
|
121
121
|
await res.body?.cancel();
|
|
122
|
-
throw
|
|
122
|
+
throw codedError(httpErrorCode(res.status), `HTTP ${res.status} ${res.statusText} for ${url}`, res.status === 404 ? "If the page definitely exists, the site may have changed — try updating plugins (tidepull plugin list)" : undefined);
|
|
123
123
|
}
|
|
124
124
|
return {
|
|
125
125
|
text: await res.text(),
|
package/package.json
CHANGED