only return on Fatal error!
()
| 7 | |
| 8 | // only return on Fatal error! |
| 9 | func startPlatformSpecific() error { |
| 10 | // We can't catch errors when calling WindowsNTVersion() in logging, so we call the function here, just to catch possible errors |
| 11 | if _, err := osdetail.WindowsNTVersion(); err != nil { |
| 12 | log.Errorf("failed to obtain WindowsNTVersion: %s", err) |
| 13 | } |
| 14 | |
| 15 | return nil |
| 16 | } |
no test coverage detected