refactor/explicitly label mongo error origin

This commit is contained in:
SowinskiBraeden committed 2024-04-25 10:41:38 -07:00
1 parent a88eb72f64
commit 7d8096b3d6
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -32,8 +32,8 @@ module.exports = {
{ upsert: true }, // Create player stat document if it does not exist
(err, _) => {
if (err) {
if (interaction == null) return client.error(err);
else return client.sendInternalError(interaction, err);
if (interaction == null) return client.error(`UpdatePlayer Error: ${err}`);
else return client.sendInternalError(interaction, `UpdatePlayer Error: ${err}`);
} else resolve();
}
);