mirror of https://github.com/perkeep/perkeep.git
osutil: more details on Lock failure
Change-Id: I84764dc257a9a8bf8fddd55f9f22fa67a8c3bdfb
This commit is contained in:
parent
e9d5346eb2
commit
6a8f653ef0
|
@ -58,7 +58,7 @@ func lockFcntl(name string) (io.Closer, error) {
|
|||
|
||||
f, err := os.Create(name)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("Lock Create of %s (abs: %s) failed: %v", name, abs, err)
|
||||
}
|
||||
|
||||
// This type matches C's "struct flock" defined in /usr/include/sys/fcntl.h.
|
||||
|
|
Loading…
Reference in New Issue