Skip to content

Commit

Permalink
Fix doc string
Browse files Browse the repository at this point in the history
Co-authored-by: SrinivasanTarget <srinivasan.sekar1990@gmail.com>
  • Loading branch information
saikrishna321 and SrinivasanTarget committed Jan 21, 2025
1 parent c4c76c3 commit 68c5c93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ export class XCUITestDriver extends BaseDriver {
/**
* Allocates and configures port forwarding for the MJPEG server
* @returns {Promise<void>}
* @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;
Expand All @@ -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}. ` +
Expand Down

0 comments on commit 68c5c93

Please sign in to comment.