billputer / go-namecheap

A Go library for using the Namecheap API
MIT License
49 stars 28 forks source link

Return ApiErrors struct so caller can inspect errors #12

Closed jameshartig closed 6 years ago

jameshartig commented 6 years ago

Previously if the caller wanted to see what error was returned they'd have to parse the string. This way they can cast it to ApiErrors and then loop over the errors.