fix: Do not fail on empty service type sections

pull/201/head
Robert Dailey 2 years ago
parent bf9a08c19c
commit c82894291f

@ -85,7 +85,6 @@ public class ConfigurationLoader : IConfigurationLoader
if (_parser.Configs.Count == 0) if (_parser.Configs.Count == 0)
{ {
_log.Debug("Document isn't empty, but still yielded no configs"); _log.Debug("Document isn't empty, but still yielded no configs");
throw new EmptyYamlException();
} }
return _parser.Configs; return _parser.Configs;
@ -114,7 +113,8 @@ public class ConfigurationLoader : IConfigurationLoader
if (!ParseSingleSection(parser)) if (!ParseSingleSection(parser))
{ {
break; parser.SkipThisAndNestedEvents();
continue;
} }
} }
} }

Loading…
Cancel
Save