Skip to content

Commit

Permalink
Add underlying error msg output for mbErrorUpdateFailure
Browse files Browse the repository at this point in the history
  • Loading branch information
rys committed Apr 15, 2023
1 parent e69282b commit 65a9e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mbdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func updateDynamicDNSv2(url string, clientID string, clientSecret string) error
response, err := client.Do(request)

if err != nil {
return &MbdnsUpdateRecordError{Err: errors.New(mbErrorUpdateFailure)}
return &MbdnsUpdateRecordError{Err: errors.New(mbErrorUpdateFailure + " error: " + err.Error())}
}

if response.StatusCode != 200 {
Expand Down

0 comments on commit 65a9e59

Please sign in to comment.