From da8d64158cf2cba20631f4d7e70376e4bee15fba Mon Sep 17 00:00:00 2001 From: Jonathan Lipps Date: Tue, 21 Jan 2014 14:18:02 -0800 Subject: [PATCH] fix node logic error preventing unlock errors from propagating in chrome --- lib/devices/android/chrome.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devices/android/chrome.js b/lib/devices/android/chrome.js index f53185335..50313bcc1 100644 --- a/lib/devices/android/chrome.js +++ b/lib/devices/android/chrome.js @@ -44,7 +44,7 @@ ChromeAndroid.prototype.start = function(cb, onDie) { ChromeAndroid.prototype.unlock = function(cb) { this.pushUnlock(function(err) { - if (err) return err; + if (err) return cb(err); this.unlockScreen(cb); }.bind(this)); };