[Lockitron] err could be null

This commit is contained in:
Nick Farina
2015-09-14 07:47:21 -07:00
parent db3f32c577
commit bb39f5f73e

View File

@@ -50,7 +50,7 @@ LockitronAccessory.prototype.setState = function(state, callback) {
callback(null); // success
}
else {
this.log("Error '%s' setting lock state. Response: %s", err.message, body);
this.log("Error '%s' setting lock state. Response: %s", err, body);
callback(err);
}
}.bind(this));