Skip to content

Commit 4d53ca2

Browse files
raise expects the stacktrace to be an array.
It worked with Strings for most ruby version but not for jRuby.
1 parent 2a622a7 commit 4d53ca2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/git/path.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def initialize(path, check_path = true)
77
if !check_path || File.exists?(path)
88
@path = File.expand_path(path)
99
else
10-
raise ArgumentError, "path does not exist", File.expand_path(path)
10+
raise ArgumentError, 'path does not exist', [File.expand_path(path)]
1111
end
1212
end
1313

@@ -24,4 +24,4 @@ def to_s
2424
end
2525

2626
end
27-
end
27+
end

0 commit comments

Comments
 (0)