summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2017-01-12 17:17:01 +0800
committerWu Cheng-Han2017-01-12 17:17:01 +0800
commitfc788e805e8896f3ae967270148939d37923c516 (patch)
treeb9ad3d44d1f4af390559b7fc1a7b83500018b5da
parent0432fef26762cfa62338a11b864488a4d525b233 (diff)
Fix SIGINT checkClean should only log error instead throw error
Diffstat (limited to '')
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index a17d3a61..47448fe1 100644
--- a/app.js
+++ b/app.js
@@ -639,7 +639,7 @@ process.on('SIGINT', function () {
var checkCleanTimer = setInterval(function () {
if (history.isReady() && realtime.isReady()) {
models.Revision.checkAllNotesRevision(function (err, notes) {
- if (err) throw new Error(err);
+ if (err) return logger.error(err);
if (!notes || notes.length <= 0) {
clearInterval(checkCleanTimer);
return process.exit(0);