diff --git a/lib/launchers/Base.js b/lib/launchers/Base.js index ac687835d..f7ad9ceb5 100644 --- a/lib/launchers/Base.js +++ b/lib/launchers/Base.js @@ -140,10 +140,14 @@ var BaseBrowser = function(id, emitter, captureTimeout, retryLimit) { this._onProcessExit = function(code, errorOutput) { log.debug('Process %s exitted with code %d', self.name, code); - if (code) { + if (self.state === BEING_CAPTURED) { log.error('Cannot start %s\n\t%s', self.name, errorOutput); } + if (self.state === CAPTURED) { + log.error('%s crashed.\n\t%s', self.name, errorOutput); + } + retryLimit--; if (self.state === BEING_CAPTURED || self.state === BEING_TIMEOUTED) {