Skip to content

Commit

Permalink
fix "libcontainer/cgroups/fs/cpuset.go:63:14: undefined: fmt"
Browse files Browse the repository at this point in the history
The compilation error had ocurred because of a bad rebase during opencontainers#2401 and opencontainers#2413

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed May 19, 2020
1 parent f369199 commit 2fa3c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcontainer/cgroups/fs/cpuset.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package fs

import (
"bytes"
"errors"
"io/ioutil"
"os"
"path/filepath"
Expand All @@ -14,6 +13,7 @@ import (
"github.com/opencontainers/runc/libcontainer/cgroups/fscommon"
"github.com/opencontainers/runc/libcontainer/configs"
libcontainerUtils "github.com/opencontainers/runc/libcontainer/utils"
"github.com/pkg/errors"
)

type CpusetGroup struct {
Expand Down Expand Up @@ -60,7 +60,7 @@ func getMount(dir string) (string, error) {
return "", err
}
if len(mi) < 1 {
return "", fmt.Errorf("Can't find mount point of %s", dir)
return "", errors.Errorf("Can't find mount point of %s", dir)
}

// find the longest mount point
Expand Down

0 comments on commit 2fa3c28

Please sign in to comment.