From f85a68df24ca9c25922b1e5de49ddb62ef7bf221 Mon Sep 17 00:00:00 2001 From: Ryan Birmingham Date: Fri, 10 Mar 2023 02:31:19 -0500 Subject: [PATCH] try to make it less likely to complain about EXPECTED errors --- idx_mongo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idx_mongo.js b/idx_mongo.js index c2a2b0b..90a3dee 100644 --- a/idx_mongo.js +++ b/idx_mongo.js @@ -5,7 +5,7 @@ const mongodb = require("./service/database"); function quietMongoAdd(db, collection, data, x) { try { - mongodb.add(db, collection, data, x); + mongodb.add(db, collection, data, x).catch((e)=>console.error(e)); } catch (err) { console.error(err); }