From 38f4425a6562e4598548b17094f55091685edef9 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 10 Feb 2013 13:41:25 -0800 Subject: [PATCH] checking error --- go/weed/export.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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