We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69314b5 commit bb4d547Copy full SHA for bb4d547
CHANGELOG.md
@@ -3,6 +3,12 @@
3
# Change Log
4
5
## [Unreleased]
6
+
7
8
+## Fixed
9
10
+- Throw failed to fetch error instead of digest mismatch error when mod download response has a status code >=400
11
12
## [1.1.0] 2025-08-17
13
14
### Added
src/mod-installer.ts
@@ -391,6 +391,9 @@ export class ModInstaller {
391
const resp = await fetch(installation.url).catch(_ => {
392
throw new Error(Lang.errors.install.failedFetch)
393
})
394
+ if (resp.status >= 400) {
395
+ throw new Error(Lang.errors.install.failedFetch)
396
+ }
397
398
const { arrayBuffer, progressFunc } = this.downloadWithProgress(resp)
399
0 commit comments