MCPcopy Create free account
hub / github.com/Merovius/nbd / Errorf

Function Errorf

types.go:465–470  ·  view source on GitHub ↗

Errorf returns an error implementing Error, returning code from Errno.

(code Errno, msg string, v ...interface{})

Source from the content-addressed store, hash-verified

463
464// Errorf returns an error implementing Error, returning code from Errno.
465func Errorf(code Errno, msg string, v ...interface{}) Error {
466 if len(v) > 0 {
467 return errf{code, fmt.Errorf(msg, v...)}
468 }
469 return errf{code, errors.New(msg)}
470}
471
472const (
473 cmdFlagFUA = 1 << 0

Callers 1

WriteAtMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected