You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/beatcmd/locker.go
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -18,10 +18,11 @@
18
18
package beatcmd
19
19
20
20
import (
21
+
"errors"
22
+
"fmt"
21
23
"os"
22
24
23
25
"github.com/gofrs/flock"
24
-
"github.com/pkg/errors"
25
26
26
27
"github.com/elastic/elastic-agent-libs/paths"
27
28
)
@@ -30,7 +31,7 @@ var (
30
31
// ErrAlreadyLocked is returned when a lock on the data path is attempted but
31
32
// unsuccessful because another Beat instance already has the lock on the same
32
33
// data path.
33
-
ErrAlreadyLocked=errors.New("data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data).")
34
+
ErrAlreadyLocked=errors.New("data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data)")
0 commit comments