Catch for when search is down.
This commit is contained in:
parent
45cafcd289
commit
9a4cdfafef
1 changed files with 5 additions and 0 deletions
|
|
@ -229,6 +229,11 @@ var pdApp = {
|
|||
}
|
||||
}, function(resp) {
|
||||
console.error(resp);
|
||||
pdApp.processInfo.done_pages ++;
|
||||
alert('Reddit search is down at the moment, so the script may not catch every submission. You may want to rerun the script after at a later time when Reddit isn\'t under so much load.');
|
||||
pdApp.processInfo.after = false;
|
||||
pdApp.processInfo.checkSearch = false;
|
||||
pdApp.process.comments.init();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue