MCPcopy Create free account
hub / github.com/appium/appium / formatScriptResult

Function formatScriptResult

packages/execute-driver-plugin/lib/execute-child.ts:140–146  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

138}
139
140function formatScriptResult(value: any): string {
141 try {
142 return `Result was: ${JSON.stringify(value)}`;
143 } catch (err: any) {
144 return err.message.split('\n')[0];
145 }
146}
147
148/**
149 * Entry point to runScript

Callers 1

coerceScriptResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected