homebridge-syntex-webhooks
Advanced tools
Comparing version 1.0.5-b8 to 1.0.5-b9
22
index.js
@@ -85,2 +85,20 @@ var request = require('request'); | ||
if(err) | ||
{ | ||
log('\x1b[31m%s\x1b[0m', "[ERROR]", "Storage.json konnte nicht geladen werden! (err)", err); | ||
} | ||
else | ||
{ | ||
log('\x1b[31m%s\x1b[0m', "[SUCCESS]", "Keine Fehler beim Laden! (err)"); | ||
} | ||
if(obj) | ||
{ | ||
log('\x1b[31m%s\x1b[0m', "[ERROR]", "Keine Fehler beim Laden! (obj)"); | ||
} | ||
else | ||
{ | ||
log('\x1b[31m%s\x1b[0m', "[ERROR]", "Storage.json konnte nicht geladen werden! (obj)"); | ||
} | ||
if(!obj && !err) | ||
@@ -159,6 +177,2 @@ { | ||
} | ||
else if(err) | ||
{ | ||
log('\x1b[31m%s\x1b[0m', "[ERROR]", "Storage.json konnte nicht geladen werden!"); | ||
} | ||
@@ -165,0 +179,0 @@ for(var i = 0; i < accessories.length; i++) |
{ | ||
"name": "homebridge-syntex-webhooks", | ||
"version": "1.0.5-b8", | ||
"version": "1.0.5-b9", | ||
"description": "A webhook plugin for HTTP devices", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
31376
561