Skip to content

Commit 6dc2ecf

Browse files
committed
improve logging coverlet console
1 parent e43acc0 commit 6dc2ecf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

FineCodeCoverage/Core/Coverlet/Console/CoverletConsoleUtil.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,14 @@ public async Task<bool> RunAsync(ICoverageProject project, bool throwError = fal
138138
*/
139139
if (result.ExitCode > 3)
140140
{
141+
logger.Log($"{title} Error. Exit code: {result.ExitCode}");
142+
logger.Log($"{title} Error. Output: ", result.Output);
141143
if (throwError)
142144
{
143145
throw new Exception(result.Output);
144146
}
145147

146-
logger.Log($"{title} Error", result.Output);
148+
147149
return false;
148150
}
149151

0 commit comments

Comments
 (0)