Added errors to new type visitor