Skip to content

Commit 684fc87

Browse files
authoredDec 13, 2024··
chore: Replace occurrences of the deprecated errorAndThrow API (#131)
1 parent 8893b1f commit 684fc87

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎lib/commands/record-screen.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ class ScreenRecorder {
147147
});
148148
} catch (e) {
149149
await this._enforceTermination();
150-
this.log.errorAndThrow(`The expected screen record file '${this._videoPath}' does not exist after ${STARTUP_TIMEOUT_MS}ms. ` +
151-
`Check the server log for more details`);
150+
throw this.log.errorWithException(
151+
`The expected screen record file '${this._videoPath}' does not exist after ${STARTUP_TIMEOUT_MS}ms. ` +
152+
`Check the server log for more details`
153+
);
152154
}
153155
this._timer = setTimeout(async () => {
154156
if (this.isRunning) {

0 commit comments

Comments
 (0)
Please sign in to comment.