From 2dbd92073f111340ca12562682a2bb1b3c1a65b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 3 Oct 2019 01:36:33 +0200 Subject: [PATCH] paramfetch review --- Makefile | 4 ++-- build/paramfetch.go | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bd511937482..3f80f48da3d 100644 --- a/Makefile +++ b/Makefile @@ -75,8 +75,8 @@ build: $(BUILD_DEPS) rm -f lotus lotus-storage-miner go build -o lotus ./cmd/lotus go build -o lotus-storage-miner ./cmd/lotus-storage-miner - rice append --exec lotus -i ./build - rice append --exec lotus-storage-miner -i ./build + go run github.com/GeertJohan/go.rice/rice append --exec lotus -i ./build + go run github.com/GeertJohan/go.rice/rice append --exec lotus-storage-miner -i ./build .PHONY: build benchmarks: diff --git a/build/paramfetch.go b/build/paramfetch.go index d534623654c..8e4b2079fca 100644 --- a/build/paramfetch.go +++ b/build/paramfetch.go @@ -27,7 +27,9 @@ type paramFile struct { } func GetParams(storage bool) error { - os.Mkdir(paramdir, 0755) + if err := os.Mkdir(paramdir, 0755); err != nil { + return err + } var params map[string]paramFile