in plugin-rust-agent/src/main/kotlin/jetbrains/buildServer/rust/AbstractToolProvider.kt [53:63]
override fun getPath(toolName: String): String {
if (!supports(toolName)) throw ToolCannotBeFoundException("Unsupported tool $toolName")
findToolPath()?.let {
return it.first
}
throw ToolCannotBeFoundException("""
Unable to locate tool $toolName in system. Please make sure to add it in the PATH variable
""".trimIndent())
}