Fix typo in print error message (#429)
This commit is contained in:
parent
38f7986e99
commit
42d406b85f
2
main.go
2
main.go
|
@ -325,7 +325,7 @@ func createPIDFile() error {
|
||||||
}
|
}
|
||||||
defer file.Close()
|
defer file.Close()
|
||||||
if _, err := file.WriteString(strconv.FormatInt(int64(currentPid), 10)); err != nil {
|
if _, err := file.WriteString(strconv.FormatInt(int64(currentPid), 10)); err != nil {
|
||||||
return fmt.Errorf("Can'write PID information on %s: %v", pidPath, err)
|
return fmt.Errorf("Can't write PID information on %s: %v", pidPath, err)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return fmt.Errorf("%s already exists", pidPath)
|
return fmt.Errorf("%s already exists", pidPath)
|
||||||
|
|
Loading…
Reference in New Issue