We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1efc35 commit 21a05d2Copy full SHA for 21a05d2
packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts.ts
@@ -120,6 +120,12 @@ export class InlineFontsProcessor {
120
},
121
122
res => {
123
+ if (res.statusCode !== 200) {
124
+ reject(new Error(`Inlining of fonts failed. ${url} returned status code: ${res.statusCode}.`));
125
+
126
+ return;
127
+ }
128
129
res
130
.on('data', chunk => rawResponse += chunk)
131
.on('end', () => resolve(rawResponse));
0 commit comments