site: Check transform errors; factor out transform handling