diff options
| author | Chris Lu <chris.lu@gmail.com> | 2017-11-25 01:31:09 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2017-11-25 01:31:13 -0800 |
| commit | 97f757c669ff52d6149138ee5c21f1b6c17bd59a (patch) | |
| tree | 90abcdd97a6ec2e7e4c33dd0438d423a75d1026f | |
| parent | d8c275306e942cfec9038878666993cb29bb7f7b (diff) | |
| download | seaweedfs-97f757c669ff52d6149138ee5c21f1b6c17bd59a.tar.xz seaweedfs-97f757c669ff52d6149138ee5c21f1b6c17bd59a.zip | |
add debug message
display the error message for debugging
https://github.com/chrislusf/seaweedfs/issues/603
| -rw-r--r-- | weed/operation/filer/register.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/operation/filer/register.go b/weed/operation/filer/register.go index 875616f26..d45fd4f35 100644 --- a/weed/operation/filer/register.go +++ b/weed/operation/filer/register.go @@ -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 } |
