Skip to content

Commit

Permalink
add error msg in spider mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hefangshi committed Dec 10, 2015
1 parent 29d70f7 commit 6a1b481
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/bigpipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ BigPipe.prototype.prepareAllSources = function (cb) {
if (sources.hasOwnProperty(id)) {
// 屏蔽所有异常
promiseSources[id] = sources[id]().catch(function (err) {
return {};
return {
BigPipeFailed: true,
err: err
};
});
}
}
Expand Down

0 comments on commit 6a1b481

Please sign in to comment.