Skip to content

Commit

Permalink
final changes and push to v1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRusk committed Feb 2, 2021
1 parent 85f89fe commit b954660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func main() {

file, err := os.Create(tmpFilename)
if err != nil {
fs.err = fmt.Errorf("Cannot create '%s'! %s", tmpFilename, err)
fs.err = fmt.Errorf("Cannot create '%s': %s", tmpFilename, err)
finishStateChan <- fs
return
}
Expand All @@ -122,7 +122,7 @@ func main() {
io.Copy(file, resp.Body)

if err := os.Rename(tmpFilename, fs.filename); err != nil {
fs.err = fmt.Errorf("Unable to rename '%s' to '%s'! %s", tmpFilename, fs.filename, err)
fs.err = fmt.Errorf("Unable to rename '%s' to '%s': %s", tmpFilename, fs.filename, err)
}

finishStateChan <- fs
Expand Down

0 comments on commit b954660

Please sign in to comment.