(client, sessionID, job)
| 698 | } |
| 699 | return String(error); |
| 700 | } |
| 701 | async function sdkCall(method, ...argsList) { |
| 702 | let firstError; |
| 703 | for (const args of argsList) { |
| 704 | if (args === undefined) |
| 705 | continue; |
| 706 | try { |
| 707 | const result = await method(args); |
| 708 | const error = sdkError(result); |
| 709 | if (!error) |
| 710 | return sdkData(result); |
| 711 | firstError = firstError || new Error(sdkErrorMessage(error)); |
| 712 | } catch (error) { |
no test coverage detected