summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 6e86cfb07e..dbde58545e 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -43,8 +43,8 @@ class VCS
def get_revisions(path)
path = relative_to(path)
last, changed, modified, *rest = Dir.chdir(@srcdir) {self.class.get_revisions(path)}
- last or raise "last revision not found"
- changed or raise "changed revision not found"
+ last or raise VCS::NotFoundError, "last revision not found"
+ changed or raise VCS::NotFoundError, "changed revision not found"
modified &&= Time.parse(modified)
return last, changed, modified, *rest
end