Skip to content

Commit 6a8defc

Browse files
committed
fix: make failQuietly do something
1 parent 307f870 commit 6a8defc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Framework/Intersect.Framework.Core/Configuration/ConfigurationHelper.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ public static T Load<T>(T configuration, string filePath, bool failQuietly = fal
1616
{
1717
if (!File.Exists(filePath))
1818
{
19+
if (failQuietly)
20+
{
21+
return configuration;
22+
}
23+
1924
throw new FileNotFoundException("Missing configuration file.", filePath);
2025
}
2126

0 commit comments

Comments
 (0)