aboutsummaryrefslogtreecommitdiff
path: root/go/operation/assign_file_id.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/operation/assign_file_id.go')
-rw-r--r--go/operation/assign_file_id.go3
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)