Fix typo in print error message (#429)

This commit is contained in:
Amin 2019-10-16 10:31:58 +03:30 committed by Bo-Yi Wu
parent 38f7986e99
commit 42d406b85f
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ func createPIDFile() error {
}
defer file.Close()
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 {
return fmt.Errorf("%s already exists", pidPath)