Skip to content

Commit

Permalink
Use log to print error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Mar 24, 2024
1 parent f7a67a5 commit a131aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions restartable.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var (
func quoteString(str string) string {
if len(str) > 0 {
str = strconv.Quote(str)
return str[1 : len(str) - 1]
return str[1 : len(str)-1]
}
return ""
}
Expand Down Expand Up @@ -247,7 +247,7 @@ func printInfoAll(dir string) error {
channel[pid] <- info
} else {
if err != nil {
fmt.Println("ERROR: ", err)
log.Print(err)
}
close(channel[pid])
}
Expand Down

0 comments on commit a131aeb

Please sign in to comment.