mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: fix builds not failing with compilation errors in unit tests (#9248)
Fixes the CI continuing to run even though it failed to compile, due to a couple of promises that weren't rejecting properly. This should avoids things like #9073 slipping through.
This commit is contained in:
committed by
Jeremy Elbourn
parent
b6da765d11
commit
6777427cc6
@@ -107,6 +107,7 @@ export class BuildPackage {
|
||||
return ngcCompile(['-p', entryPointTsconfigPath]).catch(() => {
|
||||
const error = red(`Failed to compile ${secondaryEntryPoint} using ${entryPointTsconfigPath}`);
|
||||
console.error(error);
|
||||
return Promise.reject(error);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ export async function compileEntryPoint(buildPackage: BuildPackage, tsconfigName
|
||||
return ngcCompile(ngcFlags).catch(() => {
|
||||
const error = red(`Failed to compile ${secondaryEntryPoint} using ${entryPointTsconfigPath}`);
|
||||
console.error(error);
|
||||
return Promise.reject(error);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user