I ran into an issue while running in circleci. My exec_path wasn't setup correctly but I was still getting an :ok because the ErlangError wasn't getting raised and it was really hard to figure out what's wrong.
So this pr returns {:error, :invalid_exec_path} whenever System.cmd returns the error code 127 that means that the command was not found in our PATH.
I also deleted some clauses that can never match according to dialyzer and fixed one command in the README that was wrong 😄
I ran into an issue while running in
circleci
. Myexec_path
wasn't setup correctly but I was still getting an:ok
because theErlangError
wasn't getting raised and it was really hard to figure out what's wrong.So this pr returns
{:error, :invalid_exec_path}
wheneverSystem.cmd
returns the error code127
that means that the command was not found in ourPATH
.I also deleted some clauses that can never match according to dialyzer and fixed one command in the
README
that was wrong 😄