Index: Ringtoets/Common/src/Ringtoets.Common.IO/FileImporters/ProfilesImporter.cs =================================================================== diff -u -rf27092df1f897798c4a0b24f6fc91f49c9f294ce -r1bd759817ce35fd7ab4a8b96886d5cf8244f07fe --- Ringtoets/Common/src/Ringtoets.Common.IO/FileImporters/ProfilesImporter.cs (.../ProfilesImporter.cs) (revision f27092df1f897798c4a0b24f6fc91f49c9f294ce) +++ Ringtoets/Common/src/Ringtoets.Common.IO/FileImporters/ProfilesImporter.cs (.../ProfilesImporter.cs) (revision 1bd759817ce35fd7ab4a8b96886d5cf8244f07fe) @@ -282,10 +282,11 @@ dikeProfileData.Add(data); } } - // No need to catch ArgumentException, as prflFilePaths are valid by construction. + // No need to catch ArgumentException, as prflFilePaths are valid by construction. catch (CriticalFileReadException exception) { log.Error(exception.Message); + return new ReadResult(true); } } Index: Ringtoets/Common/src/Ringtoets.Common.IO/FileImporters/StructuresImporter.cs =================================================================== diff -u -r7718705f6072a15ac28cb112abb949ee280391a9 -r1bd759817ce35fd7ab4a8b96886d5cf8244f07fe --- Ringtoets/Common/src/Ringtoets.Common.IO/FileImporters/StructuresImporter.cs (.../StructuresImporter.cs) (revision 7718705f6072a15ac28cb112abb949ee280391a9) +++ Ringtoets/Common/src/Ringtoets.Common.IO/FileImporters/StructuresImporter.cs (.../StructuresImporter.cs) (revision 1bd759817ce35fd7ab4a8b96886d5cf8244f07fe) @@ -191,6 +191,7 @@ catch (CriticalFileReadException exception) { Log.Error(exception.Message); + return new ReadResult(true); } catch (LineParseException exception) { Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/FileImporters/ProfilesImporterTest.cs =================================================================== diff -u -r2f6400116d57c2b49f7089dbc9c8cd935c185a36 -r1bd759817ce35fd7ab4a8b96886d5cf8244f07fe --- Ringtoets/Common/test/Ringtoets.Common.IO.Test/FileImporters/ProfilesImporterTest.cs (.../ProfilesImporterTest.cs) (revision 2f6400116d57c2b49f7089dbc9c8cd935c185a36) +++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/FileImporters/ProfilesImporterTest.cs (.../ProfilesImporterTest.cs) (revision 1bd759817ce35fd7ab4a8b96886d5cf8244f07fe) @@ -325,7 +325,7 @@ } [Test] - public void Import_InvalidDamType_TrueAndLogMessage() + public void Import_InvalidDamType_FalseAndLogMessage() { // Setup string filePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.Integration.Plugin, @@ -345,7 +345,7 @@ Assert.IsTrue(found); }; TestHelper.AssertLogMessages(call, asserts); - Assert.IsTrue(importResult); + Assert.IsFalse(importResult); } [Test] @@ -430,7 +430,7 @@ } [Test] - public void Import_PrflIsIncomplete_TrueAndErrorLog() + public void Import_PrflIsIncomplete_FalseAndErrorLog() { // Setup string filePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.Integration.Plugin, @@ -456,7 +456,7 @@ Assert.IsTrue(found); }; TestHelper.AssertLogMessages(call, asserts); - Assert.IsTrue(importResult); + Assert.IsFalse(importResult); } [Test]