We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 242711e commit 17a14d2Copy full SHA for 17a14d2
1 file changed
lib/vector/installer.ex
@@ -63,17 +63,18 @@ defmodule Vector.Installer do
63
install = String.replace(@install, "{path}", path)
64
install = String.to_charlist(install)
65
# credo:disable-for-next-line
66
- :os.cmd(install)
67
- validate!()
+ debug_info = :os.cmd(install)
+ validate!(debug_info)
68
end
69
70
- defp validate! do
+ defp validate!(debug_info) do
71
case Vector.version() do
72
{:ok, version} ->
73
Logger.debug("Vector #{version} installed.")
74
:ok
75
76
:error ->
77
+ IO.puts(debug_info)
78
raise RuntimeError, "Vector binary failed to install."
79
80
0 commit comments