refactor/explicitly label mongo error origin
This commit is contained in:
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ module.exports = {
|
||||
guild.Nitrado = undefined;
|
||||
if (client.databaseConnected) {
|
||||
client.dbo.collection("guilds").insertOne(guild, (err, res) => {
|
||||
if (err) throw err;
|
||||
if (err) client.error(`GetGuild Insert Error: ${err}`);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user