Skip to content

Commit

Permalink
feat: add logging for when runner fallback happens
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Oct 13, 2024
1 parent 7da6a67 commit 4d20479
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/neotest-golang/lib/cmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ end

function M.runner_fallback(executable)
if M.system_has(executable) == false then
logger.warn(
"Runner not found: " .. executable .. ". Will fall back to 'go'."
)
options.set({ runner = "go" })
return options.get().runner
end
Expand Down

0 comments on commit 4d20479

Please sign in to comment.