mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-12 18:37:54 +08:00
1232c17293
* Update hexonet-sdk to v2.2.3+incompatible * Update vendor * Go mod tidy
12 lines
339 B
Go
12 lines
339 B
Go
package hexonet
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/hexonet/go-sdk/response"
|
|
)
|
|
|
|
// GetHXApiError returns an error including API error code and error description.
|
|
func (n *HXClient) GetHXApiError(format string, objectid string, r *response.Response) error {
|
|
return fmt.Errorf(format+" %s. [%s %s]", objectid, r.GetCode(), r.GetDescription())
|
|
}
|