Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lock file location printed in log #333

Merged
merged 1 commit into from
Mar 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions ipfs-cluster-service/lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down