Merge pull request #3326 from kolyshkin/go118beta

ci: add go 1.18beta1
This commit is contained in:
Mrunal Patel
2022-01-25 16:01:25 -08:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -335,7 +335,12 @@ func (l *LinuxFactory) StartInitialization() (err error) {
defer func() {
if e := recover(); e != nil {
err = fmt.Errorf("panic from initialization: %w, %v", e, string(debug.Stack()))
if e, ok := e.(error); ok {
err = fmt.Errorf("panic from initialization: %w, %s", e, debug.Stack())
} else {
//nolint:errorlint // here e is not of error type
err = fmt.Errorf("panic from initialization: %v, %s", e, debug.Stack())
}
}
}()