aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/package.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/package.rb')
-rw-r--r--lib/rubygems/package.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb
index 8695b85fec..278ada8514 100644
--- a/lib/rubygems/package.rb
+++ b/lib/rubygems/package.rb
@@ -53,6 +53,7 @@ class Gem::Package
class Error < Gem::Exception; end
class FormatError < Error
+
attr_reader :path
def initialize(message, source = nil)
@@ -68,10 +69,12 @@ class Gem::Package
end
class PathError < Error
+
def initialize(destination, destination_dir)
super "installing into parent path %s of %s is not allowed" %
[destination, destination_dir]
end
+
end
class NonSeekableIO < Error; end