Update src/Core/WinSWCore/Configuration/YamlConfiguration.cs

pull/647/head
Oleg Nenashev 2020-08-19 19:03:52 +02:00 committed by GitHub
parent c390ac5889
commit 4aff592702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -290,6 +290,7 @@ namespace WinSW.Configuration
{
if (!int.TryParse(this.ZipOlderThanNumDaysYamlLog, out int zipolderthannumdaysValue))
{
//FIXME: Remove the build env specific warning suppression from the codebase
#pragma warning disable S2372 // Exceptions should not be thrown from property getters
throw new InvalidDataException("Roll-Size-Time Based rolling policy is specified but zipOlderThanNumDays does not match the int format found in configuration XML.");
#pragma warning restore S2372 // Exceptions should not be thrown from property getters