fix(@angular-devkit/build-angular): improve network error message during fonts inlining

Closes #19259
This commit is contained in:
Alan Agius 2020-10-30 08:45:08 +01:00 committed by Filipe Silva
parent bb370f0086
commit 6cd97b367a

View File

@ -115,7 +115,11 @@ export class InlineFontsProcessor {
.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) {