From 692e00f3fd30be72a24d7ef9abb19d1d0e84fd6b Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 13 Dec 2017 12:06:11 +0000 Subject: 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 --- tool/vcs.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tool/vcs.rb') 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 -- cgit v1.2.3