osutil: more details on Lock failure

Change-Id: I84764dc257a9a8bf8fddd55f9f22fa67a8c3bdfb
This commit is contained in:
Brad Fitzpatrick 2013-08-25 12:56:04 -05:00
parent e9d5346eb2
commit 6a8f653ef0
1 changed files with 1 additions and 1 deletions

View File

@ -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.