Update cacat.c

actually accurately reports errors now ;)