Skip to content

Commit

Permalink
Improve log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa-mohammed-sonarsource committed Dec 17, 2024
1 parent 5713ad4 commit aae9f34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Integration.Vsix/CFamily/VcxProject/FileConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private static bool TryGetCompilerPathFromClCompilerPath(ILogger logger, VCConfi

if (!fileSystem.File.Exists(compilerPath))
{
logger.WriteLine($"Compiler path \"{compilerPath}\" does not exist.");
logger.WriteLine($"Compiler path (based on \"ClCompilerPath\") \"{compilerPath}\" does not exist.");
return false;
}

Expand Down Expand Up @@ -73,7 +73,7 @@ private static bool TryGetCompilerPathFromExecutablePath(ILogger logger, VCConfi
}
else
{
logger.WriteLine($"Compiler path \"{compilerPath}\" does not exist.");
logger.WriteLine($"Compiler path (based on \"ExecutablePath\") \"{compilerPath}\" does not exist.");
}
}

Expand All @@ -91,7 +91,7 @@ private static bool TryGetCompilerPathFromVCExecutablePath(ILogger logger, VCCon
}
else
{
logger.WriteLine($"Compiler path \"{compilerPath}\" does not exist.");
logger.WriteLine($"Compiler path (based on \"{exeVar}\") \"{compilerPath}\" does not exist.");
return false;
}
}
Expand All @@ -110,7 +110,7 @@ private static bool GetCompilerPath(ILogger logger, VCConfiguration vcConfig, IF
}

// Fallback to VC_ExecutablePath, which is used to be used in VS2017 toolchains
// because ClCompilerPath was not available
// In case ClCompilerPath isn't available, and ExecutablePath matching fails
if (TryGetCompilerPathFromVCExecutablePath(logger, vcConfig, fileSystem, out compilerPath))
{
return true;
Expand Down

0 comments on commit aae9f34

Please sign in to comment.