mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-04 06:13:13 +01:00
[Lockitron] Create an Error if necessary
This commit is contained in:
@@ -51,7 +51,7 @@ LockitronAccessory.prototype.setState = function(state, callback) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.log("Error '%s' setting lock state. Response: %s", err, body);
|
this.log("Error '%s' setting lock state. Response: %s", err, body);
|
||||||
callback(err);
|
callback(err || new Error("Error setting lock state."));
|
||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user