diff --git a/go/weed/export.go b/go/weed/export.go index fd9d51164..6b391024a 100644 --- a/go/weed/export.go +++ b/go/weed/export.go @@ -89,7 +89,10 @@ func runExport(cmd *Command, args []string) bool { } defer indexFile.Close() - nm := storage.LoadNeedleMap(indexFile) + nm, err := storage.LoadNeedleMap(indexFile) + if err != nil { + log.Fatalf("cannot load needle map from %s: %s", indexFile, err) + } var version storage.Version