Skip to content

Commit

Permalink
Modification to exception text for consistency
Browse files Browse the repository at this point in the history
When reporting exceptions for VR refinements not having the right number of dimensions, we have both 1D and 2D arrays that have to be handled (the 2D simply because we're patching around a bug in BAG creation in other software that doesn't use this code that's not following the specification correctly).  The reporting of InvalidVRRefinementDimensions therefore has to be neutral on number of dimensions and report that the number is inconsistent.
  • Loading branch information
brian-r-calder committed Dec 21, 2024
1 parent a3cbb27 commit cea1c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/bag_exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ struct BAG_API InvalidVRRefinementDimensions final : virtual std::exception
{
const char* what() const noexcept override
{
return "The variable resolution refinement layer is not 1 dimensional.";
return "The variable resolution refinement layer is inconsistent with specification.";
}
};

Expand Down

0 comments on commit cea1c15

Please sign in to comment.