Correct Slack error handling

This commit is contained in:
Kristian Polso 2018-06-01 11:23:08 +03:00
parent e307d844dd
commit 460662a8b9
4 changed files with 4 additions and 3 deletions

View file

@ -79,7 +79,6 @@ export default {
</script>
<style lang="scss">
@import "../../../node_modules/highlight.js/styles/monokai-sublime";
@import "../scss/init/colors";
@import "../scss/init/extends";
@import "../scss/init/mixins";

View file

@ -122,5 +122,6 @@ export default {
</script>
<style lang="scss">
@import "../../../node_modules/highlight.js/styles/monokai-sublime";
@import '../scss/variables';
</style>

View file

@ -125,6 +125,7 @@ export default {
<style lang="scss">
@import "../../../node_modules/highlight.js/styles/monokai-sublime";
@import '../scss/variables';
#step3-page {

View file

@ -66,7 +66,7 @@ app.get('/forward', function(req, res) {
qs: req.query
}, function(error, response, body) {
// Should we parse the body before forwarding?
if(typeof body.error != "") {
if(typeof body.error != "undefined") {
logSlackError('ERROR: Got error from daemon: ' + JSON.stringify(body.error));
}
res.setHeader('Content-Type', 'application/json');
@ -163,7 +163,7 @@ function logSlackError(text) {
username: 'lbrytech-bot',
text: text
}, function(err, response) {
});
}