Skip to content

Commit d10cf91

Browse files
alan-agius4filipesilva
authored andcommitted
fix(@angular-devkit/build-angular): improve network error message during fonts inlining
Closes #19259
1 parent bee20d2 commit d10cf91

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
@@ -117,7 +117,11 @@ export class InlineFontsProcessor {
117117
.on('end', () => resolve(rawResponse));
118118
},
119119
)
120-
.on('error', e => reject(e));
120+
.on('error', e =>
121+
reject(new Error(
122+
`Inlining of fonts failed. An error has occurred while retrieving ${url} over the internet.\n` +
123+
e.message,
124+
)));
121125
});
122126

123127
if (cacheFontsPath) {

0 commit comments

Comments
 (0)