Closed gma closed 9 years ago
We ask Ruby's system method to shell out to git for us, and it kindly returns nil without raising (or printing) an error if the command doesn't exist.
system
git
nil
We need to check the return value wherever we call system.
What do you think of adding a run method in the Command module that wraps the system call?
run
We ask Ruby's
system
method to shell out togit
for us, and it kindly returnsnil
without raising (or printing) an error if the command doesn't exist.We need to check the return value wherever we call
system
.