add support for transferred channels

fix bugs
update dependencies
This commit is contained in:
Niko Storni 2019-01-03 17:01:00 +01:00
parent 730bcae128
commit 1b07cadcbf
No known key found for this signature in database
GPG key ID: F37FE63398800368
4 changed files with 56 additions and 37 deletions

View file

@ -135,7 +135,7 @@ func (a *APIConfig) SetChannelClaimID(channelID string, channelClaimID string) e
var response apiChannelStatusResponse
err := json.Unmarshal(body, &response)
if err != nil {
return err
return errors.Err(err)
}
if !response.Error.IsNull() {
return errors.Err(response.Error.String)