Skip to content

Commit fc788e8

Browse files
committed
Fix SIGINT checkClean should only log error instead throw error
1 parent 0432fef commit fc788e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ process.on('SIGINT', function () {
639639
var checkCleanTimer = setInterval(function () {
640640
if (history.isReady() && realtime.isReady()) {
641641
models.Revision.checkAllNotesRevision(function (err, notes) {
642-
if (err) throw new Error(err);
642+
if (err) return logger.error(err);
643643
if (!notes || notes.length <= 0) {
644644
clearInterval(checkCleanTimer);
645645
return process.exit(0);

0 commit comments

Comments
 (0)