adjusting error message printing

This commit is contained in:
Chris Lu 2012-09-25 23:28:16 -07:00
parent 59ca65da3c
commit 019173b1cc
3 changed files with 3 additions and 3 deletions

View file

@ -141,7 +141,7 @@ func runMaster(cmd *Command, args []string) bool {
log.Println("Start Weed Master", VERSION, "at port", strconv.Itoa(*mport))
e := http.ListenAndServe(":"+strconv.Itoa(*mport), nil)
if e != nil {
log.Fatal("Fail to start:", e)
log.Fatalf("Fail to start:%s", e.Error())
}
return true
}

View file

@ -6,7 +6,7 @@ import (
)
const (
VERSION = "0.19"
VERSION = "0.20"
)
var cmdVersion = &Command{

View file

@ -245,7 +245,7 @@ func runVolume(cmd *Command, args []string) bool {
log.Println("Start storage service at http://127.0.0.1:"+strconv.Itoa(*vport), "public url", *publicUrl)
e := http.ListenAndServe(":"+strconv.Itoa(*vport), nil)
if e != nil {
log.Fatalf("Fail to start:", e)
log.Fatalf("Fail to start:%s", e.Error())
}
return true
}