diff --git a/lib/commands/record-screen.js b/lib/commands/record-screen.js index 30c271f..be770cd 100644 --- a/lib/commands/record-screen.js +++ b/lib/commands/record-screen.js @@ -147,8 +147,10 @@ class ScreenRecorder { }); } catch (e) { await this._enforceTermination(); - this.log.errorAndThrow(`The expected screen record file '${this._videoPath}' does not exist after ${STARTUP_TIMEOUT_MS}ms. ` + - `Check the server log for more details`); + throw this.log.errorWithException( + `The expected screen record file '${this._videoPath}' does not exist after ${STARTUP_TIMEOUT_MS}ms. ` + + `Check the server log for more details` + ); } this._timer = setTimeout(async () => { if (this.isRunning) {