summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-13 12:06:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-13 12:06:11 +0000
commit692e00f3fd30be72a24d7ef9abb19d1d0e84fd6b (patch)
treef35054dae2cdc9264de2157b5c8dda278e816ff8 /tool/vcs.rb
parente44a6f2f840d4632cea49277a2186229b45545d5 (diff)
vcs.rb: raise NotFoundError when command not found
* tool/vcs.rb (VCS#get_revisions): raise VCS::NotFoundError when command not found. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 552abd0fd2..a5928a415e 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -139,6 +139,8 @@ class VCS
STDERR.reopen NullDevice, 'w'
end
self.class.get_revisions(path, @srcdir)
+ rescue Errno::ENOENT => e
+ raise VCS::NotFoundError, e.message
ensure
if save_stderr
STDERR.reopen save_stderr