common/cpt: redesign propagation of error