Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 37b6a71

Browse files
chore(Gruntfile): kill the build if the CDN version was not found
Closes #14769
1 parent e79ebff commit 37b6a71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Gruntfile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ module.exports = function(grunt) {
1717
NG_VERSION.cdn = versionInfo.cdnVersion;
1818
var dist = 'angular-'+ NG_VERSION.full;
1919

20+
if (versionInfo.cdnVersion == null) {
21+
throw new Error('Unable to read CDN version, are you offline or has the CDN not been properly pushed?');
22+
}
23+
2024
//config
2125
grunt.initConfig({
2226
NG_VERSION: NG_VERSION,

0 commit comments

Comments
 (0)