github.com/nilium/gitlab-runner@v12.5.0+incompatible/helpers/fslocker/errors.go (about) 1 package fslocker 2 3 import ( 4 "github.com/pkg/errors" 5 ) 6 7 func errFileInUse(path string) error { 8 return errors.Errorf("file %q is locked by another process", path) 9 } 10 11 func errCantAcquireLock(inner error, path string) error { 12 return errors.Wrapf(inner, "can't acquire file lock on %q file", path) 13 } 14 15 func errCantReleaseLock(inner error, path string) error { 16 return errors.Wrapf(inner, "can't release file lock on %q file", path) 17 }