Fix incorrect error message when .shp.xml metadata file doesn't exist

This commit is contained in:
Nyall Dawson 2021-05-05 10:26:51 +10:00
parent 2fed93cdfd
commit 921e6fa1a1

View File

@ -1524,10 +1524,10 @@ void QgsOgrProvider::loadMetadata()
}
file.close();
}
}
else
{
QgsDebugMsg( QStringLiteral( "Error reading %1 - could not open file for read" ).arg( sidecarPath ) );
else
{
QgsDebugMsg( QStringLiteral( "Error reading %1 - could not open file for read" ).arg( sidecarPath ) );
}
}
}
}