File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ modules.forEach(function(m) {
10
10
var module = require ( './' + m + '/package.json' )
11
11
if ( module . package ) {
12
12
getJSON ( module . package , function ( data ) {
13
- console . log ( '' )
14
13
if ( data . version !== module . version ) {
15
14
console . info ( module . name + ' ' + module . version + ' (latest ' + data . version + ')' )
16
15
} else {
@@ -22,15 +21,14 @@ modules.forEach(function(m) {
22
21
var repo = repo . replace ( 'https://github.com/' , '' )
23
22
var repo = repo . replace ( '.git' , '' )
24
23
getVersion ( repo , function ( version ) {
25
- console . log ( '' )
26
24
if ( module . version != version ) {
27
25
console . info ( module . name + ' ' + module . version + ' (latest ' + version + ')' )
28
26
} else {
29
27
console . info ( module . name + ' ' + module . version )
30
28
}
31
29
} )
32
30
} else {
33
- console . info ( '\n' + module . name + ' ' + module . version + ' (check manually)' )
31
+ console . info ( module . name + ' ' + module . version + ' (check manually)' )
34
32
}
35
33
} )
36
34
@@ -41,7 +39,8 @@ function getJSON(uri, callback) {
41
39
42
40
connect . get ( options , function ( res ) {
43
41
if ( res . statusCode !== 200 ) {
44
- throw 'Error: No data received from ' + uri
42
+ console . error ( 'Error: No data received from ' + uri )
43
+ return ;
45
44
}
46
45
47
46
var ret = [ ] , length = 0
You can’t perform that action at this time.
0 commit comments