mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-16 12:28:06 +08:00
12 lines
379 B
Go
12 lines
379 B
Go
package hexonet
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/centralnicgroup-opensource/rtldev-middleware-go-sdk/v3/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+" %q. [%v %s]", objectid, r.GetCode(), r.GetDescription())
|
|
}
|