Skip to content

Commit 91af963

Browse files
committed
Merge pull request #14370 from eschnett/eschnett/loading-rm
Use `rm(..., force=true)` instead of ignoring all errors
2 parents afd60fa + 8c11604 commit 91af963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/loading.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ end
415415
evalfile(path::AbstractString, args::Vector) = evalfile(path, UTF8String[args...])
416416

417417
function create_expr_cache(input::AbstractString, output::AbstractString)
418-
try rm(output) end # Remove file if it exists
418+
rm(output, force=true) # Remove file if it exists
419419
code_object = """
420420
while !eof(STDIN)
421421
eval(Main, deserialize(STDIN))

0 commit comments

Comments
 (0)