Skip to content

Commit 4c7f220

Browse files
committed
Merge pull request #13392 from wildart/err-msg-13390
checks dir in order to prevent exception loss
2 parents aed9686 + e95968d commit 4c7f220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/pkg/entry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function clone(url::AbstractString, pkg::AbstractString)
197197
LibGit2.set_remote_url(repo, url)
198198
end
199199
catch
200-
Base.rm(pkg, recursive=true)
200+
isdir(pkg) && Base.rm(pkg, recursive=true)
201201
rethrow()
202202
end
203203
info("Computing changes...")

0 commit comments

Comments
 (0)