forked from Supositware/Haha-Yes
Don't fail silently
This commit is contained in:
parent
e0847399ca
commit
f51d2c1a6e
1 changed files with 4 additions and 2 deletions
|
@ -102,7 +102,8 @@ class tweetCommand extends Command {
|
||||||
T.post('media/upload', { media_data: b64Image }, function (err, data) {
|
T.post('media/upload', { media_data: b64Image }, function (err, data) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log('OH NO AN ERROR!!!!!!!');
|
console.log('OH NO AN ERROR!!!!!!!');
|
||||||
return console.error(err);
|
console.error(err);
|
||||||
|
return message.channel.send('OH NO!!! AN ERROR HAS OCCURED!!! please hold on while i find what\'s causing this issue! ');
|
||||||
} else {
|
} else {
|
||||||
Tweet(data);
|
Tweet(data);
|
||||||
}
|
}
|
||||||
|
@ -139,7 +140,8 @@ class tweetCommand extends Command {
|
||||||
T.post('statuses/update', options, function (err, response) {
|
T.post('statuses/update', options, function (err, response) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error('OH NO!!!!');
|
console.error('OH NO!!!!');
|
||||||
return console.error(err);
|
console.error(err);
|
||||||
|
return message.channel.send('OH NO!!! AN ERROR HAS OCCURED!!! please hold on while i find what\'s causing this issue! ');
|
||||||
}
|
}
|
||||||
|
|
||||||
const tweetid = response.id_str;
|
const tweetid = response.id_str;
|
||||||
|
|
Loading…
Reference in a new issue