Skip to content
Snippets Groups Projects
Unverified Commit ac4e1de4 authored by Pawan Rawal's avatar Pawan Rawal
Browse files

Add filepath with error while initializing store

parent c7718a99
No related branches found
No related tags found
No related merge requests found
...@@ -82,6 +82,6 @@ echo "$checksum /usr/local/share/icudt58l.dat" >> $checksum_file ...@@ -82,6 +82,6 @@ echo "$checksum /usr/local/share/icudt58l.dat" >> $checksum_file
echo -e "Calculating and storing checksum for tar gzipped assets." echo -e "Calculating and storing checksum for tar gzipped assets."
cd $cur_dir 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}') checksum=$($digest_cmd assets.tar.gz | awk '{print $1}')
echo "$checksum /usr/local/share/dgraph/assets.tar.gz" >> $checksum_file echo "$checksum /usr/local/share/dgraph/assets.tar.gz" >> $checksum_file
...@@ -69,7 +69,7 @@ func NewSyncStore(filepath string) (*Store, error) { ...@@ -69,7 +69,7 @@ func NewSyncStore(filepath string) (*Store, error) {
s.wopt.SetSync(true) // Do synchronous writes. s.wopt.SetSync(true) // Do synchronous writes.
var err error var err error
s.db, err = rdb.OpenDb(s.opt, filepath) 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. // NewReadOnlyStore constructs a readonly Store object at filepath, given options.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment