Project: datamanagement
Issue DM-4335: The astrometry task should print a warning or throw an exception when there is no reference star in the field
When there is no reference star in the field the exception raised by anetAstrometry is identical to the one issued when the fit has not converged. astrometry (matchOptimisticB) is throwing an exception with the message lsst::pex::exceptions::InvalidParameterError: 'posRefBegInd too big'. I suggest a test to detect that there is not enough stars to fit the astrometry and to throw an exception accordingly.
Story points: 1