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>
|
||||
|
||||
<style lang="scss">
|
||||
@import "../../../node_modules/highlight.js/styles/monokai-sublime";
|
||||
@import "../scss/init/colors";
|
||||
@import "../scss/init/extends";
|
||||
@import "../scss/init/mixins";
|
||||
|
|
|
@ -122,5 +122,6 @@ export default {
|
|||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import "../../../node_modules/highlight.js/styles/monokai-sublime";
|
||||
@import '../scss/variables';
|
||||
</style>
|
||||
|
|
|
@ -125,6 +125,7 @@ export default {
|
|||
|
||||
<style lang="scss">
|
||||
|
||||
@import "../../../node_modules/highlight.js/styles/monokai-sublime";
|
||||
@import '../scss/variables';
|
||||
|
||||
#step3-page {
|
||||
|
|
|
@ -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) {
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue