MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / logHookError

Method logHookError

packages/wdio-cli/src/interface.ts:236–241  ·  view source on GitHub ↗
(error: Error | HookError)

Source from the content-addressed store, hash-verified

234 }
235
236 logHookError(error: Error | HookError) {
237 if (error instanceof HookError) {
238 return this.log(`${chalk.red(error.name)} in "${error.origin}"\n${chalk.red(error.stack || error.message)}`)
239 }
240 return this.log(`${chalk.red(error.name)}: ${chalk.red(error.stack || error.message)}`)
241 }
242
243 /**
244 * event handler that is triggered when runner sends up events

Callers 3

runMethod · 0.80
_workerHookErrorMethod · 0.80
interface.test.tsFile · 0.80

Calls 1

logMethod · 0.95

Tested by

no test coverage detected