Skip to content

Commit

Permalink
DOC: Improve diagnostic message for exception
Browse files Browse the repository at this point in the history
Provide more expressive comment for the nature of the error
thrown.
  • Loading branch information
hjmjohnson committed Apr 1, 2020
1 parent 010effb commit bebe1d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ RelabelComponentImageFilter<TInputImage, TOutputImage>::GenerateData()
{
if (outputLabel == NumericTraits<OutputPixelType>::max())
{
itkExceptionMacro("Output range exceeded!");
itkExceptionMacro("Output voxel range exceeded for relabeling. Too many objects of sufficient size found!");
}
// map for input labels to output labels (Note we use i+1 in the
// map since index 0 is the background)
Expand Down

0 comments on commit bebe1d6

Please sign in to comment.