Skip to content

Commit 5b3a471

Browse files
authored
Fix string interpolation for path in log (#2630)
## Why make this change? fixes #2629 ## What is this change? Fix the string interpolation
1 parent af09e10 commit 5b3a471

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Config/FileSystemRuntimeConfigLoader.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,14 @@ public bool TryLoadConfig(
273273
return false;
274274
}
275275

276-
string errorMessage = "Unable to find config file: {path} does not exist.";
277276
if (logger is null)
278277
{
278+
string errorMessage = $"Unable to find config file: {path} does not exist.";
279279
Console.Error.WriteLine(errorMessage);
280280
}
281281
else
282282
{
283+
string errorMessage = "Unable to find config file: {path} does not exist.";
283284
logger.LogError(message: errorMessage, path);
284285
}
285286

0 commit comments

Comments
 (0)