Browse Source

add debug message

display the error message for debugging
https://github.com/chrislusf/seaweedfs/issues/603
pull/608/merge
Chris Lu 7 years ago
parent
commit
97f757c669
  1. 2
      weed/operation/filer/register.go

2
weed/operation/filer/register.go

@ -25,7 +25,7 @@ func RegisterFile(filer string, path string, fileId string, secret security.Secr
values.Add("fileId", fileId) values.Add("fileId", fileId)
_, err := util.Post("http://"+filer+"/admin/register", values) _, err := util.Post("http://"+filer+"/admin/register", values)
if err != nil { if err != nil {
return fmt.Errorf("Failed to register path:%s on filer:%s to file id:%s", path, filer, fileId)
return fmt.Errorf("Failed to register path %s on filer %s to file id %s : %v", path, filer, fileId, err)
} }
return nil return nil
} }
Loading…
Cancel
Save