add debug message

display the error message for debugging
https://github.com/chrislusf/seaweedfs/issues/603
This commit is contained in:
Chris Lu 2017-11-25 01:31:09 -08:00
parent d8c275306e
commit 97f757c669

View file

@ -25,7 +25,7 @@ func RegisterFile(filer string, path string, fileId string, secret security.Secr
values.Add("fileId", fileId)
_, err := util.Post("http://"+filer+"/admin/register", values)
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
}