Commit a0c0486d authored by NGPixel's avatar NGPixel

Fix empty search index error on Linux

parent 48e2afa5
......@@ -86,6 +86,17 @@ module.exports = {
};
}
}).catch((err) => {
if(err.type === 'NotFoundError') {
return {
match: [],
suggest: []
};
} else {
winston.error(err);
}
});
},
......@@ -113,6 +124,14 @@ module.exports = {
return true;
}
}).catch((err) => {
if(err.type === 'NotFoundError') {
return true;
} else {
winston.error(err);
}
}).then(() => {
return self._si.addAsync({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment