(error: any)
| 141 | } |
| 142 | |
| 143 | export function errorString(error: any): string { |
| 144 | if (!error) |
| 145 | return "<empty error>"; |
| 146 | else if (error instanceof Error) |
| 147 | return error.message + (error.stack ? `\n${error.stack}` : ""); |
| 148 | else if (error.message) |
| 149 | return error.message as string; |
| 150 | else if (typeof error === "string") |
| 151 | return error; |
| 152 | else |
| 153 | return `${error}`; |
| 154 | } |
| 155 | |
| 156 | type BufferedLogMessage = |
| 157 | { type: "info", message: string, category?: LogCategory } |
no outgoing calls
no test coverage detected