Skip to content

Commit

Permalink
fix: add error log
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Aug 17, 2024
1 parent 317e03e commit 99b09cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/neotest-golang/lib/cmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ function M.golist_data(cwd)
local output = vim
.system(go_list_command, { cwd = cwd, text = true })
:wait().stdout or ""
logger.info({ "Go list output: ", output })
if output == "" then
logger.error({ "Execution of 'go list' failed, output:", output })
end
return json.decode_from_string(output)
end

Expand Down

0 comments on commit 99b09cf

Please sign in to comment.