Skip to content

Commit

Permalink
Merge pull request #10931 from rouault/fix_10928
Browse files Browse the repository at this point in the history
DIMAP: emit verbose error message if not able to open image file
  • Loading branch information
rouault authored Oct 4, 2024
2 parents 88bca08 + a6a034a commit b067b12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frmts/dimap/dimapdataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,8 @@ int DIMAPDataset::ReadImageInformation()
/* Try and open the file. */
/* -------------------------------------------------------------------- */

auto poImageDS =
std::unique_ptr<GDALDataset>(GDALDataset::Open(osImageFilename));
auto poImageDS = std::unique_ptr<GDALDataset>(GDALDataset::Open(
osImageFilename, GDAL_OF_RASTER | GDAL_OF_VERBOSE_ERROR));
if (poImageDS == nullptr)
{
return FALSE;
Expand Down Expand Up @@ -1233,8 +1233,8 @@ int DIMAPDataset::ReadImageInformation2()
/* -------------------------------------------------------------------- */
/* Try and open the file. */
/* -------------------------------------------------------------------- */
auto poImageDS =
std::unique_ptr<GDALDataset>(GDALDataset::Open(osImageDSFilename));
auto poImageDS = std::unique_ptr<GDALDataset>(GDALDataset::Open(
osImageDSFilename, GDAL_OF_RASTER | GDAL_OF_VERBOSE_ERROR));
if (poImageDS == nullptr)
{
return FALSE;
Expand Down

0 comments on commit b067b12

Please sign in to comment.