* Wraps error objects that don't have a proper message property * This is needed for ESM compatibility with WebdriverIO error handling
(e)
| 53 | * This is needed for ESM compatibility with WebdriverIO error handling |
| 54 | */ |
| 55 | function wrapError(e) { |
| 56 | if (e && typeof e === 'object' && !e.message) { |
| 57 | const err = new Error(e.error || e.timeoutMsg || String(e)) |
| 58 | err.stack = e.stack |
| 59 | return err |
| 60 | } |
| 61 | return e |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * ## Configuration |
no outgoing calls
no test coverage detected