mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 20:52:06 +08:00
fix(@angular-devkit/build-angular): improve network error message during fonts inlining
Closes #19259
This commit is contained in:
parent
bb370f0086
commit
6cd97b367a
@ -115,7 +115,11 @@ export class InlineFontsProcessor {
|
|||||||
.on('end', () => resolve(rawResponse));
|
.on('end', () => resolve(rawResponse));
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.on('error', e => reject(e));
|
.on('error', e =>
|
||||||
|
reject(new Error(
|
||||||
|
`Inlining of fonts failed. An error has occurred while retrieving ${url} over the internet.\n` +
|
||||||
|
e.message,
|
||||||
|
)));
|
||||||
});
|
});
|
||||||
|
|
||||||
if (cacheFontsPath) {
|
if (cacheFontsPath) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user