Skip to content

Commit

Permalink
try another catch
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Oct 5, 2022
1 parent 0d74b04 commit a2a6cd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions caracal.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,15 @@ function masterHandler() {
}).then(()=>{
if (RUN_INDEXER) {
const indexer = require('./idx_mongo.js');
try{
indexer.collections();
indexer.indexes();
indexer.defaults();
console.log("added indexes");
}
catch(e){
console.log("error in indexer, ", e);
}
}
}).catch((e) => {
console.error(e);
Expand Down

0 comments on commit a2a6cd1

Please sign in to comment.