mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add debug message
display the error message for debugging https://github.com/chrislusf/seaweedfs/issues/603
This commit is contained in:
parent
d8c275306e
commit
97f757c669
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue