Commit 3fb18d3a authored by Samuel E. Giddins's avatar Samuel E. Giddins

[ErrorReport] Make more robust against missing executables

Closes #3719
parent 43502d3f
...@@ -90,6 +90,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -90,6 +90,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
Mac App Store. Mac App Store.
[Samuel Giddins](https://github.com/segiddins) [Samuel Giddins](https://github.com/segiddins)
* The error report template is now more robust against missing executables.
[Samuel Giddins](https://github.com/segiddins)
[#3719](https://github.com/CocoaPods/CocoaPods/issues/3719)
## 0.37.2 ## 0.37.2
......
...@@ -73,6 +73,12 @@ EOS ...@@ -73,6 +73,12 @@ EOS
private private
def `(command)
super
rescue Errno::ENOENT => e
"Unable to find an executable (#{e})"
end
def pathless_exception_message(message) def pathless_exception_message(message)
message.gsub(/- \(.*\):/, '-') message.gsub(/- \(.*\):/, '-')
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment