model/xraymodel: progress on errorhandling