From cbe4fe530d5e380664a5cb70960fb13ff5a00319 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Fri, 4 Mar 2016 20:16:09 +0000 Subject: [PATCH] add error check --- hugo/hugo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hugo/hugo.go b/hugo/hugo.go index d59c06fc..05a0c23f 100644 --- a/hugo/hugo.go +++ b/hugo/hugo.go @@ -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 {