small changes to error handling in transmogrifier script