diff options
| author | chrislusf <chris.lu@gmail.com> | 2015-03-09 01:10:01 -0700 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2015-03-09 01:10:04 -0700 |
| commit | f511b507a5230e931d0250b446f744073be879b3 (patch) | |
| tree | e9728b47902fc4f31aa93d24a937cb2654becc6c /go/operation/assign_file_id.go | |
| parent | d48d76cb4f419a58539fb84c7a45c7eb863b854f (diff) | |
| download | seaweedfs-f511b507a5230e931d0250b446f744073be879b3.tar.xz seaweedfs-f511b507a5230e931d0250b446f744073be879b3.zip | |
Add read only public port on volume server
Add read only public port on volume server
Diffstat (limited to 'go/operation/assign_file_id.go')
| -rw-r--r-- | go/operation/assign_file_id.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/go/operation/assign_file_id.go b/go/operation/assign_file_id.go index 672bfa99c..8b6dfe5ba 100644 --- a/go/operation/assign_file_id.go +++ b/go/operation/assign_file_id.go @@ -3,6 +3,7 @@ package operation import ( "encoding/json" "errors" + "fmt" "net/url" "strconv" @@ -38,7 +39,7 @@ func Assign(server string, count int, replication string, collection string, ttl var ret AssignResult err = json.Unmarshal(jsonBlob, &ret) if err != nil { - return nil, err + return nil, fmt.Errorf("JSON unmarshal error:%v, json:%s", err, string(jsonBlob)) } if ret.Count <= 0 { return nil, errors.New(ret.Error) |
