add error check

pull/68/head
Henrique Dias 2016-03-04 20:16:09 +00:00
parent 654332673c
commit cbe4fe530d
1 changed files with 2 additions and 2 deletions

View File

@ -80,10 +80,10 @@ func GetPath() string {
switch runtime.GOOS {
case "darwin", "windows":
zp := extractor.NewZip()
zp.Extract(tempfile, temp)
err = zp.Extract(tempfile, temp)
default:
gz := extractor.NewTgz()
gz.Extract(tempfile, temp)
err = gz.Extract(tempfile, temp)
}
if err != nil {