Skip to content

Commit b359918

Browse files
committed
Print error on from open failure when deleting a datasource.
Close OSGeo#13666
1 parent ee7e39e commit b359918

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

gcore/gdaldriver.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,8 @@ CPLErr GDALDriver::Delete(const char *pszFilename)
16721672
/* -------------------------------------------------------------------- */
16731673
/* Collect file list. */
16741674
/* -------------------------------------------------------------------- */
1675-
GDALDatasetH hDS = GDALOpenEx(pszFilename, 0, nullptr, nullptr, nullptr);
1675+
GDALDatasetH hDS = GDALOpenEx(pszFilename, GDAL_OF_VERBOSE_ERROR, nullptr,
1676+
nullptr, nullptr);
16761677

16771678
if (hDS == nullptr)
16781679
{

0 commit comments

Comments
 (0)