|
@@ -51,7 +51,7 @@ func (api *API) SaveState(storeName string, request []SaveStateRequest) error {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if resp.IsError() {
|
|
if resp.IsError() {
|
|
|
- return utils.ResponseStatusError(resp)
|
|
|
|
|
|
|
+ return utils.ResponseStatusError(saveUrl, resp)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
return nil
|
|
@@ -68,7 +68,7 @@ func (api *API) GetState(storeName string, key string, queryParams map[string]st
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if resp.IsError() {
|
|
if resp.IsError() {
|
|
|
- return "", "", utils.ResponseStatusError(resp)
|
|
|
|
|
|
|
+ return "", "", utils.ResponseStatusError(getUrl, resp)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
var body string
|
|
var body string
|
|
@@ -97,7 +97,7 @@ func (api *API) GetStateBulk(storeName string, queryParams map[string]string, re
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if resp.IsError() {
|
|
if resp.IsError() {
|
|
|
- return nil, utils.ResponseStatusError(resp)
|
|
|
|
|
|
|
+ return nil, utils.ResponseStatusError(getBulkUrl, resp)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
items := make([]GetStateBulkItem, 0)
|
|
items := make([]GetStateBulkItem, 0)
|
|
@@ -122,7 +122,7 @@ func (api *API) DeleteState(storeName string, key string, queryParams map[string
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if resp.IsError() {
|
|
if resp.IsError() {
|
|
|
- return utils.ResponseStatusError(resp)
|
|
|
|
|
|
|
+ return utils.ResponseStatusError(deleteUrl, resp)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
return nil
|
|
@@ -140,7 +140,7 @@ func (api *API) Transaction(storeName string, request TransactionRequest) error
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if resp.IsError() {
|
|
if resp.IsError() {
|
|
|
- return utils.ResponseStatusError(resp)
|
|
|
|
|
|
|
+ return utils.ResponseStatusError(transactionUrl, resp)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
return nil
|