Skip to content

Commit

Permalink
libct: checkCriuFeatures: return underlying error
Browse files Browse the repository at this point in the history
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed May 8, 2024
1 parent 151f480 commit 71f1f60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libcontainer/criu_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ func (c *Container) checkCriuFeatures(criuOpts *CriuOpts, rpcOpts *criurpc.CriuO

err := c.criuSwrk(nil, req, criuOpts, nil)
if err != nil {
logrus.Debugf("%s", err)
return errors.New("CRIU feature check failed")
return fmt.Errorf("CRIU feature check failed: %w", err)
}

var missingFeatures []string
Expand Down

0 comments on commit 71f1f60

Please sign in to comment.