diff --git a/src/UsgsAstroLsSensorModel.cpp b/src/UsgsAstroLsSensorModel.cpp index b2cb9846d18aa768fcada51fe5b8ef4dabae8eca..de6ea12b134e11d79dd22a28a98d1ee6c7c03e61 100644 --- a/src/UsgsAstroLsSensorModel.cpp +++ b/src/UsgsAstroLsSensorModel.cpp @@ -231,9 +231,9 @@ csm::ImageCoord UsgsAstroLsSensorModel::groundToImage( // Check if both offsets have the same sign. // This means there is not guaranteed to be a zero. if ((firstOffset > 0) != (lastOffset < 0)) { - throw csm::Error( - csm::Error::ALGORITHM, - "Ground point is not viewed by the image.", + throw csm::Warning( + csm::Warning::IMAGE_COORD_OUT_OF_BOUNDS, + "The image coordinate is out of bounds of the image size.", "UsgsAstroLsSensorModel::groundToImage"); }