Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6cd97b3

Browse files
alan-agius4filipesilva
authored andcommittedNov 2, 2020
fix(@angular-devkit/build-angular): improve network error message during fonts inlining
Closes #19259
1 parent bb370f0 commit 6cd97b3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ export class InlineFontsProcessor {
115115
.on('end', () => resolve(rawResponse));
116116
},
117117
)
118-
.on('error', e => reject(e));
118+
.on('error', e =>
119+
reject(new Error(
120+
`Inlining of fonts failed. An error has occurred while retrieving ${url} over the internet.\n` +
121+
e.message,
122+
)));
119123
});
120124

121125
if (cacheFontsPath) {

0 commit comments

Comments
 (0)
Please sign in to comment.