From 1d1dbb7e50421bc97e367ce17829308e9199e132 Mon Sep 17 00:00:00 2001 From: Ramiro Algozino Date: Thu, 1 Aug 2024 10:43:39 +0200 Subject: [PATCH] chore(lockfile): improve error message make the error message when the lock file exists more user friendly. Explaining what does it mean when the file already exists. --- internal/lockfile/lockfile.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/lockfile/lockfile.go b/internal/lockfile/lockfile.go index 9a31ffc92..9d78ff103 100644 --- a/internal/lockfile/lockfile.go +++ b/internal/lockfile/lockfile.go @@ -11,7 +11,9 @@ import ( "path/filepath" ) -var ErrLockFileExists = errors.New("lock file exists") +var ErrLockFileExists = errors.New( + "lock file exists. This usually means that there is another instance of furyctl running", +) type LockFile struct { Path string