EDITD / kubetools

:nut_and_bolt: Kubetools is a tool and processes for developing and deploying microservices to Kubernetes.
MIT License
13 stars 2 forks source link

Fix issue where dev exceptions would not be formatted correctly #24

Closed chrissinclairedited closed 5 years ago

chrissinclairedited commented 5 years ago

Because the except KubeError was first, and KubeDevCommandError and KubeDevError are both KubeError's, we were never using those except blocks. By moving this later, we use the proper KubeDevCommandError handler which correctly formats stdout (as it's being passed in raw, rather than through the __str__ handler for KubeError.

chrissinclairedited commented 5 years ago

Thanks for the review @Fizzadar!