( type: string, message: string, err: Error, notification?: GitifyNotification, )
| 45 | * @param notification - Optional notification to include as context in the log entry. |
| 46 | */ |
| 47 | export function rendererLogError( |
| 48 | type: string, |
| 49 | message: string, |
| 50 | err: Error, |
| 51 | notification?: GitifyNotification, |
| 52 | ) { |
| 53 | logError(type, message, err, buildContexts(notification)); |
| 54 | } |
| 55 | |
| 56 | function buildContexts(notification?: GitifyNotification): string[] { |
| 57 | if (!notification) { |
no test coverage detected