(error: Error, type: ErrorType)
| 27 | } |
| 28 | |
| 29 | const exceptionToString = (error: Error, type: ErrorType): string => { |
| 30 | const { message, stack } = error |
| 31 | return ( |
| 32 | `Version: ${MARKTEXT_VERSION_STRING || app.getVersion()}\n` + |
| 33 | `OS: ${getOSInformation()}\n` + |
| 34 | `Type: ${type}\n` + |
| 35 | `Date: ${new Date().toUTCString()}\n` + |
| 36 | `Message: ${message}\n` + |
| 37 | `Stack: ${stack}\n` |
| 38 | ) |
| 39 | } |
| 40 | |
| 41 | const handleError = async(title: string, error: Error, type: ErrorType): Promise<void> => { |
| 42 | const { message, stack } = error |
no test coverage detected