Improve Errors

This commit is contained in:
Daniel Odendahl Jr
2017-05-16 17:24:47 +00:00
parent 9ae50db19c
commit 92f7c05015
46 changed files with 64 additions and 64 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ module.exports = class HoroscopeCommand extends Command {
body.date, true);
return msg.embed(embed);
} catch (err) {
return msg.say('An Error Occurred.');
return msg.say(err.message);
}
}
};
+1 -1
View File
@@ -49,7 +49,7 @@ module.exports = class SoundboardCommand extends Command {
return null;
});
} catch (err) {
return msg.say('An Error Occurred.');
return msg.say(err.message);
}
}
};
+1 -1
View File
@@ -46,7 +46,7 @@ module.exports = class StrawpollCommand extends Command {
http://strawpoll.me/${body.id}
`);
} catch (err) {
return msg.say('An Error Occurred.');
return msg.say(err.message);
}
}
};
+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = class TodayCommand extends Command {
.setDescription(`${event.year}: ${event.text}`);
return msg.embed(embed);
} catch (err) {
return msg.say('An Error Occurred.');
return msg.say(err.message);
}
}
};
+1 -1
View File
@@ -27,7 +27,7 @@ module.exports = class WouldYouRatherCommand extends Command {
.setDescription(`${body.choicea} OR ${body.choiceb}?`);
return msg.embed(embed);
} catch (err) {
return msg.say('An Error Occurred.');
return msg.say(err.message);
}
}
};