Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit b2262c2

Browse files
committed
chore: updated broken-link-checker package and tweaked logging.
1 parent 613d53e commit b2262c2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

gulpfile.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ function linkChecker(options) {
691691
var handlers = {
692692
robots: function(robots, customData){},
693693
html: function(tree, robots, response, pageUrl, customData){
694-
//gutil.log('Scanning ' + pageUrl);docs/ts/latest/api/core/
694+
// gutil.log('Scanning ' + pageUrl);
695695
},
696696
junk: function(result, customData){},
697697

@@ -708,8 +708,8 @@ function linkChecker(options) {
708708
}
709709
var msg = '\n [' + result.html.location.line + ', ' + result.brokenReason + '] ' + result.url.resolved;
710710
fs.appendFileSync(outputFile, msg);
711-
//gutil.log(msg);
712-
//gutil.log(result);
711+
// gutil.log(msg);
712+
// gutil.log(result);
713713
},
714714

715715
page: function(error, pageUrl, customData){},
@@ -737,8 +737,11 @@ function linkChecker(options) {
737737
var startTime = new Date().getTime();
738738

739739
try {
740+
gutil.log('link checker started');
740741
siteChecker.enqueue(siteUrl, customData);
741742
} catch (err) {
743+
gutil.log('link checker died');
744+
console.error('link checker died', err);
742745
deferred.reject(err);
743746
}
744747
return deferred.promise;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"devDependencies": {
2828
"archiver": "^0.16.0",
2929
"assert-plus": "^0.1.5",
30-
"broken-link-checker": "0.7.0",
30+
"broken-link-checker": "0.7.1",
3131
"browser-sync": "^2.9.3",
3232
"canonical-path": "0.0.2",
3333
"cross-spawn": "^2.1.0",

0 commit comments

Comments
 (0)