Browse Source

Improve error logging

pull/9/head
Abheek Dhawan 4 years ago
parent
commit
2b6145863f
  1. 8
      bot/awesomescibo.js

8
bot/awesomescibo.js

@ -339,10 +339,10 @@ async function generateRound(message) {
requestedBy: message.author.id, requestedBy: message.author.id,
}); });
newGeneratedRound.save((err, round) => newGeneratedRound.save((err, round) =>
err if (err) {
? console.log("Error creating saving generated round content") console.log(err);
: console.log("Sucessfully created new entry for the generated round") return;
}
message.channel.fetch(generatingMessage.id).edit(`https://api.adawesome.tech/round/${round._id.toString()}`); message.channel.fetch(generatingMessage.id).edit(`https://api.adawesome.tech/round/${round._id.toString()}`);
); );
} }

Loading…
Cancel
Save