Minor: added sub-exception in case of error in cfg