Skip to content

Commit f6a8c9b

Browse files
committed
libct: checkCriuFeatures: return underlying error
Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent e8bec1b commit f6a8c9b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libcontainer/criu_linux.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ func (c *Container) checkCriuFeatures(criuOpts *CriuOpts, rpcOpts *criurpc.CriuO
4848

4949
err := c.criuSwrk(nil, req, criuOpts, nil)
5050
if err != nil {
51-
logrus.Debugf("%s", err)
52-
return errors.New("CRIU feature check failed")
51+
return fmt.Errorf("CRIU feature check failed: %w", err)
5352
}
5453

5554
var missingFeatures []string

0 commit comments

Comments
 (0)