(e: any)
| 5 | * ensure any errors are logged. |
| 6 | */ |
| 7 | export function logAsyncException(e: any) { |
| 8 | if (e instanceof Error) { |
| 9 | Debug.log( |
| 10 | `\nException when running asynchronous function:\n${e}\n${e.stack}\n` |
| 11 | ); |
| 12 | } else { |
| 13 | Debug.logWithStackTrace( |
| 14 | `\nException when running asynchronous function: ${e}\n` |
| 15 | ); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | export function mslog(...args: unknown[]) { |
| 20 | Debug.log(...args); |
nothing calls this directly
no test coverage detected