Skip to content

Commit f07dc5b

Browse files
authored
fix: correct error message (#135)
1 parent e375d6c commit f07dc5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/engine.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ async function replayState(
276276
function begin() {
277277
if (complete) {
278278
throw new Error(
279-
"Cannot begin another operation after the conversation has completed, are you missing an `await`?",
279+
"Cannot begin another operation after the replay has completed, are you missing an `await`?",
280280
);
281281
}
282282
promises++;
@@ -318,7 +318,7 @@ async function replayState(
318318
async function cancel(key?: unknown) {
319319
if (complete) {
320320
throw new Error(
321-
"Cannot perform a cancel operation after the conversation has completed, are you missing an `await`?",
321+
"Cannot perform a cancel operation after the replay has completed, are you missing an `await`?",
322322
);
323323
}
324324
canceled = true;

0 commit comments

Comments
 (0)