Skip to content

Commit

Permalink
Merge pull request #273 from polywrap/fix/evo-returns-error-on-client…
Browse files Browse the repository at this point in the history
…-error

fix(evo): return error when client invocation fails in `executeScript`
  • Loading branch information
dOrgJelli authored Oct 3, 2023
2 parents e4a4b86 + 6d405dc commit 8cd2afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/evo/src/agent-functions/executeScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const executeScript: AgentFunction<AgentContext> = {
? result.value.error == null
? context.client.jsPromiseOutput.ok
? ResultOk(SUCCESS(params.namespace, context.client.jsPromiseOutput.value, params))
: ResultOk(SUCCESS(params.namespace, context.client.jsPromiseOutput.error, params))
: ResultOk(EXECUTE_SCRIPT_ERROR_RESULT(params.namespace, JSON.stringify(context.client.jsPromiseOutput.error), params))
: ResultOk(EXECUTE_SCRIPT_ERROR_RESULT(params.namespace, result.value.error, params))
: ResultOk(EXECUTE_SCRIPT_ERROR_RESULT(params.namespace, result.error?.toString(), params));

Expand Down

0 comments on commit 8cd2afe

Please sign in to comment.