This commit is contained in:
Stef Heyenrath
2018-08-08 11:05:27 +02:00
parent 5ee25fb1e7
commit 9e7d3b6d2d
3 changed files with 263 additions and 262 deletions

View File

@@ -121,7 +121,15 @@ namespace WireMock.Server
foreach (string filename in Directory.EnumerateFiles(folder).OrderBy(f => f))
{
_logger.Info("Reading Static MappingFile : '{0}'", filename);
ReadStaticMappingAndAddOrUpdate(filename);
try
{
ReadStaticMappingAndAddOrUpdate(filename);
}
catch
{
_logger.Error("Static MappingFile : '{0}' could not be read. This file will be skipped.", filename);
}
}
}