feat: improve ttl error message (#300)

This commit is contained in:
shamsartem 2023-06-12 17:56:26 +02:00 committed by GitHub
parent 2615d5cefd
commit 9821183d53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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') {