output errors when trying to run hooks