add lots of error checking by GThomas

This commit is contained in:
Chris Lu
2013-02-26 22:54:22 -08:00
parent bd278337db
commit db8e27be6e
29 changed files with 268 additions and 170 deletions

View File

@@ -1,10 +1,10 @@
package main
import (
"code.google.com/p/weed-fs/go/storage"
"log"
"os"
"path"
"code.google.com/p/weed-fs/go/storage"
"strconv"
)
@@ -52,7 +52,7 @@ func runFix(cmd *Command, args []string) bool {
debug("saved", count, "with error", pe)
} else {
debug("skipping deleted file ...")
nm.Delete(n.Id)
return nm.Delete(n.Id)
}
return nil
})