mirror of https://github.com/knative/client.git
check if status detail is nil (#380)
This commit is contained in:
parent
7b90959033
commit
f97f305fed
|
|
@ -39,6 +39,10 @@ func GetError(err error) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if apiStatus.Status().Details == nil {
|
||||
return err
|
||||
}
|
||||
|
||||
var knerr *KNError
|
||||
|
||||
if isCRDError(apiStatus) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue