Skip to content

Commit

Permalink
Merge pull request #3326 from kolyshkin/go118beta
Browse files Browse the repository at this point in the history
ci: add go 1.18beta1
  • Loading branch information
Mrunal Patel authored Jan 26, 2022
2 parents a1727ef + b5cb405 commit 403cda1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [1.16.x, 1.17.x]
go-version: [1.16.x, 1.17.x, 1.18.0-beta1]
rootless: ["rootless", ""]
race: ["-race", ""]
criu: [""]
Expand Down
7 changes: 6 additions & 1 deletion libcontainer/factory_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
}()

Expand Down

0 comments on commit 403cda1

Please sign in to comment.