Skip to content

Commit

Permalink
add error handling for file installer
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMcKenzie committed Dec 3, 2015
1 parent 20471c8 commit 1313da3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dropship/installer_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ import (
type FileInstaller struct{}

func (i FileInstaller) Install(dest string, f io.Reader) (count int, err error) {
moveOld(dest)
err = moveOld(dest)
if err != nil {
return 0, err
}

if f == nil {
return count, ErrNilReader
}
Expand Down

0 comments on commit 1313da3

Please sign in to comment.