mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Chore: show primary URL on failed fetch
This commit is contained in:
@@ -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 {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user