diff --git a/lib/driver.js b/lib/driver.js index 836dca23c..67d68d72c 100644 --- a/lib/driver.js +++ b/lib/driver.js @@ -499,7 +499,7 @@ export class XCUITestDriver extends BaseDriver { /** * Allocates and configures port forwarding for the MJPEG server * @returns {Promise} - * @throws {Error} If port forwarding fails + * @throws {Error} If port forwarding fails and mjpegServerPort capability value is provided explicitly */ async allocateMjpegServerPort() { const mjpegServerPort = this.opts.mjpegServerPort || DEFAULT_MJPEG_SERVER_PORT; @@ -519,6 +519,7 @@ export class XCUITestDriver extends BaseDriver { `Try to customize the value of 'mjpegServerPort' capability as a possible solution`, ); } else { + this.log.debug(error.stack); throw new Error( `Cannot ensure MJPEG broadcast functionality by forwarding the local port ${mjpegServerPort} ` + `requested by the 'mjpegServerPort' capability to the device port ${mjpegServerPort}. ` +