Correct Slack error handling
This commit is contained in:
parent
e307d844dd
commit
460662a8b9
4 changed files with 4 additions and 3 deletions
|
@ -79,7 +79,6 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "../../../node_modules/highlight.js/styles/monokai-sublime";
|
|
||||||
@import "../scss/init/colors";
|
@import "../scss/init/colors";
|
||||||
@import "../scss/init/extends";
|
@import "../scss/init/extends";
|
||||||
@import "../scss/init/mixins";
|
@import "../scss/init/mixins";
|
||||||
|
|
|
@ -122,5 +122,6 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
@import "../../../node_modules/highlight.js/styles/monokai-sublime";
|
||||||
@import '../scss/variables';
|
@import '../scss/variables';
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -125,6 +125,7 @@ export default {
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
||||||
|
@import "../../../node_modules/highlight.js/styles/monokai-sublime";
|
||||||
@import '../scss/variables';
|
@import '../scss/variables';
|
||||||
|
|
||||||
#step3-page {
|
#step3-page {
|
||||||
|
|
|
@ -66,7 +66,7 @@ app.get('/forward', function(req, res) {
|
||||||
qs: req.query
|
qs: req.query
|
||||||
}, function(error, response, body) {
|
}, function(error, response, body) {
|
||||||
// Should we parse the body before forwarding?
|
// 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));
|
logSlackError('ERROR: Got error from daemon: ' + JSON.stringify(body.error));
|
||||||
}
|
}
|
||||||
res.setHeader('Content-Type', 'application/json');
|
res.setHeader('Content-Type', 'application/json');
|
||||||
|
@ -163,7 +163,7 @@ function logSlackError(text) {
|
||||||
username: 'lbrytech-bot',
|
username: 'lbrytech-bot',
|
||||||
text: text
|
text: text
|
||||||
}, function(err, response) {
|
}, function(err, response) {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue