From ac4e1de4038aa496664e18cf8010451111f74332 Mon Sep 17 00:00:00 2001
From: Pawan Rawal <pawan@dgraph.io>
Date: Wed, 15 Mar 2017 15:29:18 +1100
Subject: [PATCH] Add filepath with error while initializing store

---
 contrib/releases/build.sh | 2 +-
 store/store.go            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/releases/build.sh b/contrib/releases/build.sh
index 7170d6b2..d7b57ace 100755
--- a/contrib/releases/build.sh
+++ b/contrib/releases/build.sh
@@ -82,6 +82,6 @@ echo "$checksum /usr/local/share/icudt58l.dat" >> $checksum_file
 
 echo -e "Calculating and storing checksum for tar gzipped assets."
 cd $cur_dir
-tar -zcf assets.tar.gz -C $GOPATH/src/github.com/dgraph-io/dgraph/dashboard/build .
+GZIP=-n tar -zcf assets.tar.gz -C $GOPATH/src/github.com/dgraph-io/dgraph/dashboard/build .
 checksum=$($digest_cmd assets.tar.gz | awk '{print $1}')
 echo "$checksum /usr/local/share/dgraph/assets.tar.gz" >> $checksum_file
diff --git a/store/store.go b/store/store.go
index f1f671fb..12503883 100644
--- a/store/store.go
+++ b/store/store.go
@@ -69,7 +69,7 @@ func NewSyncStore(filepath string) (*Store, error) {
 	s.wopt.SetSync(true) // Do synchronous writes.
 	var err error
 	s.db, err = rdb.OpenDb(s.opt, filepath)
-	return s, x.Wrap(err)
+	return s, x.Wrapf(err, "Directory: %v", filepath)
 }
 
 // NewReadOnlyStore constructs a readonly Store object at filepath, given options.
-- 
GitLab