We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00da18b + 7c1240c commit 5956bfbCopy full SHA for 5956bfb
1 file changed
lib/rubygems/package.rb
@@ -59,7 +59,7 @@ class FormatError < Error
59
60
def initialize(message, source = nil)
61
if source
62
- @path = source.path
+ @path = source.is_a?(String) ? source : source.path
63
64
message += " in #{path}" if path
65
end
0 commit comments