refactor(ipfs2/main) return err
Brian Tiger Chow committed
Nov 10, 2014 at 23:09 UTC
d72af9c910184a48ef1ee9df638ddc92f9b0cf10
1 file changed
+1
-1
cmd/ipfs2/main.go
+1
-1
@@ -269,7 +269,7 @@ func getConfig(path string) (*config.Config, error) {
269
func writeHeapProfileToFile() error {
270
mprof, err := os.Create(heapProfile)
271
if err != nil {
272
- log.Fatal(err)
272
+ return err
273
}
274
defer mprof.Close()
275
return pprof.WriteHeapProfile(mprof)