logging when a hooks returns an error.