File: error.go

package info (click to toggle)
runc 1.1.5%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 2,820 kB
  • sloc: sh: 1,847; ansic: 1,434; makefile: 138
file content (15 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package fs

import (
	"fmt"

	"github.com/opencontainers/runc/libcontainer/cgroups/fscommon"
)

type parseError = fscommon.ParseError

// malformedLine is used by all cgroupfs file parsers that expect a line
// in a particular format but get some garbage instead.
func malformedLine(path, file, line string) error {
	return &parseError{Path: path, File: file, Err: fmt.Errorf("malformed line: %s", line)}
}