diff --git a/Makefile b/Makefile index 89af754..d7d3dec 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ export GOFLAGS=-mod=readonly all: build -build: model-gen client-gen astrolabe kubernetes pvc s3repository fs server client astrolabe_server astrolabe_cli +build: model-gen client-gen astrolabe kubernetes pvc s3repository fs server client astrolabe_server astrolabe_cli localsnap astrolabe_server: cd cmd/astrolabe_server; go build diff --git a/pkg/localsnap/localsnap_repo.go b/pkg/localsnap/localsnap_repo.go index 2bbb56c..c3c6d1a 100644 --- a/pkg/localsnap/localsnap_repo.go +++ b/pkg/localsnap/localsnap_repo.go @@ -222,7 +222,7 @@ func (this LocalSnapshotRepo) GetPEInfoReader(ctx context.Context, peid astrolab returnReader, err := os.Open(peInfoPath) if err != nil { err = errors.Wrap(err, "Could not open data stream") - return err + return nil, err } return returnReader, nil }