Skip to content

Commit

Permalink
Adds error thrown for missing vswhere (#136)
Browse files Browse the repository at this point in the history
* adds error thrown for vswhere

* uses with statement

* formats
  • Loading branch information
druyang authored Feb 21, 2025
1 parent 8f3b94a commit 7cd0b37
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/bundlex/toolchain/visual_studio.ex
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@ defmodule Bundlex.Toolchain.VisualStudio do

Path.join([installation_path, "VC", "Auxiliary", "Build", "vcvarsall.bat"])
|> PathHelper.fix_slashes()
else
false ->
Output.raise(
"Unable to find vswhere.exe at #{vswhere}. Is Visual Studio installed correctly?"
)

{_output, return_value} ->
Output.raise(
"vswhere.exe failed with status #{return_value}. Unable to locate Visual Studio installation."
)
end
end
end

0 comments on commit 7cd0b37

Please sign in to comment.