mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-16 03:00:34 +08:00
Chore: show primary URL on failed fetch
This commit is contained in:
parent
c6f684c886
commit
680079c55a
@ -398,7 +398,7 @@ export class Cache<S = string> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(picocolors.red('[fetch error]'), picocolors.gray(error.url), error);
|
console.log(picocolors.red('[fetch error]'), picocolors.gray(`[${primaryUrl}]`), error);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ('name' in e) {
|
if ('name' in e) {
|
||||||
@ -418,7 +418,7 @@ export class Cache<S = string> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(picocolors.red('[fetch error]'), picocolors.gray(primaryUrl), e);
|
console.log(picocolors.red('[fetch error]'), picocolors.gray(`[${primaryUrl}]`), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user