Skip to content

Commit

Permalink
print error on open failure (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
gillins committed Nov 30, 2021
1 parent 40044c7 commit 208a1d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gdal/keadataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ GDALDataset *KEADataset::Open( GDALOpenInfo * poOpenInfo )
catch (kealib::KEAIOException &e)
{
// was a problem - can't be a valid file
CPLError( CE_Failure, CPLE_OpenFailed,
"Attempt to open file `%s' failed. Error: %s\n",
poOpenInfo->pszFilename, e.what() );
return NULL;
}
}
Expand Down

0 comments on commit 208a1d7

Please sign in to comment.