Merge pull request #333 from ipfs/feat/service/lock-msg

lock file location printed in log
This commit is contained in:
Hector Sanjuan 2018-03-08 10:32:12 +01:00 committed by GitHub
commit 4e1f59062d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,10 +30,10 @@ func (l *lock) lock() error {
if err != nil {
logger.Debug(err)
l.lockCloser = nil
errStr := `could not obtain execution lock. If no other process
is running, remove ~/path/to/lock, or make sure that the config folder is
errStr := fmt.Sprintf(`could not obtain execution lock. If no other process
is running, remove %s, or make sure that the config folder is
writable for the user running ipfs-cluster. Run with -d for more information
about the error`
about the error`, path.Join(l.path, lockFileName))
logger.Error(errStr)
return fmt.Errorf("could not obtain execution lock")
}