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,
});
newGeneratedRound.save((err, round) =>
err
? console.log("Error creating saving generated round content")
: console.log("Sucessfully created new entry for the generated round")
if (err) {
console.log(err);
return;
}
message.channel.fetch(generatingMessage.id).edit(`https://api.adawesome.tech/round/${round._id.toString()}`);
);
}

Loading…
Cancel
Save