Skip to content

Commit

Permalink
fix ArgumentError
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokaro committed May 27, 2024
1 parent 8abf12d commit b092ae1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/ocran
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,9 @@ EOF
srcroot
else
loop do
relpath = path.relative_path_from(srcroot)
if relpath.absolute?
begin
relpath = path.relative_path_from(srcroot)
rescue ArgumentError
Ocran.fatal_error "No common directory contains all specified files"
end
if relpath.to_posix =~ /^\.\.\//
Expand Down

0 comments on commit b092ae1

Please sign in to comment.