Skip to content

Catch otbImageFileReaderException in otbTestMain

Summary

Add a more specific catch statement in otbTestMain.

Rationale

Current error message:

otbTestMain 'otbLineSegmentDetector': ITK Exception thrown:
c:\dashboard\otb\src\modules\io\imageio\include\otbImageFileReader.hxx:604:
The file does not exist.

New error message:

otbTestMain 'otbEdgeDensityImageFilter': ImageFileReaderException:
/home/poughov/cnes/dev/otb/Modules/IO/ImageIO/include/otbImageFileReader.hxx:604:
Cannot open image /home/poughov/cnes/dev/otb-data/Input/sceneBLABLA.png. The file does not exist.

Copyright

The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.


Check before merging:

  • All discussions are resolved
  • At least 2 👍 votes from core developers, no 👎 vote.
  • The feature branch is (reasonably) up-to-date with the base branch
  • Dashboard is green
  • Copyright owner has signed the ORFEO ToolBox Contributor License Agreement

Merge request reports

Loading