Skip to content

Commit 0b1ef9e

Browse files
committed
making things time out a bit easier
1 parent 59df0fa commit 0b1ef9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/side-runtime/src/playback-tree/command-node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,16 @@ export class CommandNode {
149149
const timeLimit = timeout - Date.now()
150150
const expirationTimer = setTimeout(() => {
151151
throw new Error(
152-
`Operation timed out running command ${this.command.command}:${this.command.target}:${this.command.value}!`
152+
`Operation timed out running command ${this.command.command}:${this.command.target}:${this.command.value}`
153153
)
154154
}, timeLimit)
155155
try {
156156
const result = await execute()
157157
clearTimeout(expirationTimer)
158158
return result
159159
} catch (e) {
160-
this.handleTransientError(e, timeout)
161160
clearTimeout(expirationTimer)
161+
this.handleTransientError(e, timeout)
162162
await this.pauseTimeout()
163163
return this.retryCommand(execute, timeout)
164164
}

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)