From 04fe937c0dda3a9c6e83aae36ef0eb41773c6e5a Mon Sep 17 00:00:00 2001 From: Artsiom Shamsutdzinau Date: Mon, 24 Apr 2023 12:19:02 +0200 Subject: [PATCH] feat: improve ttl error message --- packages/core/js-peer/src/compilerSupport/callFunction.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/js-peer/src/compilerSupport/callFunction.ts b/packages/core/js-peer/src/compilerSupport/callFunction.ts index 9eb586253..b2855fe15 100644 --- a/packages/core/js-peer/src/compilerSupport/callFunction.ts +++ b/packages/core/js-peer/src/compilerSupport/callFunction.ts @@ -81,7 +81,9 @@ export const callAquaFunction: CallAquaFunctionType = ({ def, script, config, pe } if (stage.stage === 'expired') { - reject(`Request timed out after ${particle.ttl} for ${def.functionName} (particle id: ${particle.id})`); + reject( + `Particle expired after ttl of ${particle.ttl}ms for function ${def.functionName} (particle id: ${particle.id})`, + ); } if (stage.stage === 'interpreterError') {