mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 21:33:57 -07:00
Regularize JSON stuff
This commit is contained in:
parent
b9911d0db7
commit
c3e0f262d1
13 changed files with 164 additions and 114 deletions
|
@ -32,3 +32,10 @@ const (
|
|||
ErrInvalidSignature Err = "invalid signature"
|
||||
ErrSecretKeyRequired Err = "secret key required"
|
||||
)
|
||||
|
||||
// APIErr is returned by the JSON API when a call fails
|
||||
type APIErr struct {
|
||||
Reason string
|
||||
}
|
||||
|
||||
func (e *APIErr) Error() string { return e.Reason }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue