File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
- v0.0.9
1
+ v0.0.10
Original file line number Diff line number Diff line change 1
1
module github.com/pablodz/inotifywaitgo
2
2
3
- go 1.23 .1
3
+ go 1.24 .1
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package inotifywaitgo
3
3
import (
4
4
"bufio"
5
5
"encoding/csv"
6
+ "errors"
6
7
"fmt"
7
8
"log"
8
9
"os"
@@ -14,13 +15,13 @@ import (
14
15
func WatchPath (s * Settings ) {
15
16
// Check if inotifywait is installed
16
17
if ok , err := checkDependencies (); ! ok || err != nil {
17
- s .ErrorChan <- fmt . Errorf (NOT_INSTALLED )
18
+ s .ErrorChan <- errors . New (NOT_INSTALLED )
18
19
return
19
20
}
20
21
21
22
// Check if the directory exists
22
23
if _ , err := os .Stat (s .Dir ); os .IsNotExist (err ) {
23
- s .ErrorChan <- fmt . Errorf (DIR_NOT_EXISTS )
24
+ s .ErrorChan <- errors . New (DIR_NOT_EXISTS )
24
25
return
25
26
}
26
27
@@ -57,7 +58,7 @@ func WatchPath(s *Settings) {
57
58
58
59
parts , err := parseLine (line )
59
60
if err != nil || len (parts ) < 2 {
60
- s .ErrorChan <- fmt . Errorf (INVALID_OUTPUT )
61
+ s .ErrorChan <- errors . New (INVALID_OUTPUT )
61
62
continue
62
63
}
63
64
You can’t perform that action at this time.
0 commit comments