Handle error when not able to get hierarchal cats.
Support debug output.