aboutsummaryrefslogtreecommitdiff
path: root/clients/netbox/model.go
diff options
context:
space:
mode:
Diffstat (limited to 'clients/netbox/model.go')
-rw-r--r--clients/netbox/model.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/clients/netbox/model.go b/clients/netbox/model.go
index be4767d..6ff0e6c 100644
--- a/clients/netbox/model.go
+++ b/clients/netbox/model.go
@@ -8,7 +8,12 @@ import (
8 8
9type ApiError struct { 9type ApiError struct {
10 Status int 10 Status int
11 Detail string `json:"detail"` 11 Detail string `json:"detail"`
12 Errors []ApiSubError `json:"errors"`
13}
14
15type ApiSubError struct {
16 Message string `json:"message"`
12} 17}
13 18
14func (e *ApiError) Error() string { 19func (e *ApiError) Error() string {