diff options
| author | chrislusf <chris.lu@gmail.com> | 2015-03-19 10:48:28 -0700 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2015-03-19 10:48:28 -0700 |
| commit | 23012deccf7366cb666b120598f4aadb1572674f (patch) | |
| tree | 99e08cc1e142783d999b3012846a1762a1a1f301 | |
| parent | b75ca9890d91b3ca28e83cdf884c455f3f0aa5ac (diff) | |
| download | seaweedfs-23012deccf7366cb666b120598f4aadb1572674f.tar.xz seaweedfs-23012deccf7366cb666b120598f4aadb1572674f.zip | |
Add better error message.
| -rw-r--r-- | go/operation/assign_file_id.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/operation/assign_file_id.go b/go/operation/assign_file_id.go index 8b6dfe5ba..31766b053 100644 --- a/go/operation/assign_file_id.go +++ b/go/operation/assign_file_id.go @@ -39,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, fmt.Errorf("JSON unmarshal error:%v, json:%s", err, string(jsonBlob)) + return nil, fmt.Errorf("/dir/assign result JSON unmarshal error:%v, json:%s", err, string(jsonBlob)) } if ret.Count <= 0 { return nil, errors.New(ret.Error) |
