log error

This commit is contained in:
Lamp 2019-06-08 02:39:04 -04:00
parent f4f870a2d1
commit 04f5eacceb

@ -99,6 +99,7 @@ console.log("start");
var screenshot = await page.screenshot({type: 'png'});
await message.channel.send(new Discord.Attachment(screenshot, "screenshot.png"));
} catch(error) {
console.error(error);
await message.channel.send(`:warning: ${error.message}`);
} finally {
try {