Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): improve network error message dur…
Browse files Browse the repository at this point in the history
…ing fonts inlining

Closes #19259
  • Loading branch information
alan-agius4 authored and filipesilva committed Nov 2, 2020
1 parent bee20d2 commit d10cf91
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,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) {
Expand Down

0 comments on commit d10cf91

Please sign in to comment.