Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 9821183

Browse files
authored
feat: improve ttl error message (#300)
1 parent 2615d5c commit 9821183

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/js-peer/src/compilerSupport/callFunction.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ export const callAquaFunction: CallAquaFunctionType = ({ def, script, config, pe
8181
}
8282

8383
if (stage.stage === 'expired') {
84-
reject(`Request timed out after ${particle.ttl} for ${def.functionName} (particle id: ${particle.id})`);
84+
reject(
85+
`Particle expired after ttl of ${particle.ttl}ms for function ${def.functionName} (particle id: ${particle.id})`,
86+
);
8587
}
8688

8789
if (stage.stage === 'interpreterError') {

0 commit comments

Comments
 (0)