From 23012deccf7366cb666b120598f4aadb1572674f Mon Sep 17 00:00:00 2001 From: chrislusf Date: Thu, 19 Mar 2015 10:48:28 -0700 Subject: [PATCH] Add better error message. --- go/operation/assign_file_id.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)