Forbidden should not swallow the underlying error

This commit is contained in:
derekwaynecarr 2015-01-15 11:22:15 -05:00
parent 4cd345b8a6
commit e5b550576c

View File

@ -102,7 +102,7 @@ func NewForbidden(kind, name string, err error) error {
Kind: kind,
ID: name,
},
Message: fmt.Sprintf("%s %q is forbidden", kind, name),
Message: fmt.Sprintf("%s %q is forbidden: %v", kind, name, err),
}}
}