MCPcopy Create free account
hub / github.com/CPChain/chain / convertFileLockError

Function convertFileLockError

node/errors.go:22–27  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

20)
21
22func convertFileLockError(err error) error {
23 if errno, ok := err.(syscall.Errno); ok && datadirInUseErrnos[uint(errno)] {
24 return ErrDatadirUsed
25 }
26 return err
27}
28
29// DuplicateServiceError is returned during Node startup if a registered service
30// constructor returns a service of the same type that was already started.

Callers 2

StartMethod · 0.85
openDataDirMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected