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