Skip to content

Commit

Permalink
Fixed http bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellen Fawkes authored Sep 18, 2017
1 parent 4ee650f commit dc4db37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/Nextstream/nextstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function streamLiveNowAnnounce() {
}
}
} else {
logger.error("An error occured while fetching stream status! Status code: %s", response.statusCode);
logger.error("An error occured while fetching stream status! %s", error);
logger.dir(body);
PurrplingBot.logEvent("An error occured while fetching stream status! Status code: " + response.statusCode, "StreamCheck", "ERROR");
}
Expand Down Expand Up @@ -131,7 +131,7 @@ exports.nextstream = {
.catch(logger.error);
} else {
message.channel.send("Ooops! Něco se rozbilo! Zkus to prosím za chvíli.")
.then(logger.error("An error occured while fetching stream events! Status code: %s", response.statusCode))
.then(logger.error("An error occured while fetching stream status! %s", error))
.catch(logger.error);
}
});
Expand Down Expand Up @@ -162,7 +162,7 @@ exports.livenow = {
.then(logger.info(`Information about stream status sent to #${message.channel.name} requested by: ${message.author.username}`))
.catch(logger.error);
} else {
logger.error("An error occured while fetching stream status! Status code: %s", response.statusCode);
logger.error("An error occured while fetching stream status! %s", error);
message.channel.send(`Omlouvám se, ale něco se rozbilo. :crying_cat_face: Zkus to prosím později. MŇAU!*`)
.catch(logger.error);
}
Expand Down

0 comments on commit dc4db37

Please sign in to comment.