Skip to content

Commit

Permalink
chore: Replace occurrences of the deprecated errorAndThrow API
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Dec 12, 2024
1 parent 8893b1f commit 62b235b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/commands/record-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 62b235b

Please sign in to comment.