Skip to content

Commit 1aca2cf

Browse files
authored
Merge pull request #446 from codacy/improve-warning-missing-tool
fix: Improve warning for missing tool
2 parents d3246f2 + e9c0daf commit 1aca2cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • core/src/main/scala/com/codacy/analysis/core/tools

core/src/main/scala/com/codacy/analysis/core/tools/Tool.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ class ToolCollector(toolRepository: ToolRepository) {
168168
val toolsIdentified: Set[Tool] = tools.map { tool =>
169169
if (toolUuids.contains(tool.uuid)) {
170170
from(tool, languages) match {
171-
case Left(_) =>
172-
logger.warn(s"Failed to get tool for uuid:${tool.uuid}")
171+
case Left(error) =>
172+
logger.warn(s"Failed to get tool for ${tool.name}.\nReason: ${error.message}")
173173
Set.empty
174174
case Right(tools) => tools
175175
}

0 commit comments

Comments
 (0)