(errorDefinition)
| 554 | } |
| 555 | |
| 556 | function getErrorFunc(errorDefinition) { |
| 557 | if (!errorDefinition) return null; |
| 558 | const [, func] = errorDefinition; |
| 559 | return func; |
| 560 | } |
| 561 | |
| 562 | function getErrorMessage(error: Error | null | undefined, func: Function | null | undefined): string { |
| 563 | if (!error || !func) return ''; |
no outgoing calls
no test coverage detected