Skip to content

Commit 53b12b6

Browse files
tweak formatting
1 parent 5eb157b commit 53b12b6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Artifacts.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -317,13 +317,13 @@ function download_artifact(
317317
try
318318
download_verify_unpack(tarball_url, tarball_hash, dest_dir, ignore_existence=true,
319319
verbose=verbose, quiet_download=quiet_download, io=io)
320-
catch e
321-
@debug "download_artifact error" tree_hash tarball_url tarball_hash e
320+
catch err
321+
@debug "download_artifact error" tree_hash tarball_url tarball_hash err
322322
# Clean that destination directory out if something went wrong
323323
rm(dest_dir; force=true, recursive=true)
324324

325-
if isa(e, InterruptException)
326-
rethrow(e)
325+
if isa(err, InterruptException)
326+
rethrow(err)
327327
end
328328
return false
329329
end
@@ -340,10 +340,10 @@ function download_artifact(
340340
download_verify_unpack(tarball_url, tarball_hash, dir, ignore_existence=true, verbose=verbose,
341341
quiet_download=quiet_download, io=io)
342342
end
343-
catch e
344-
@debug "download_artifact error" tree_hash tarball_url tarball_hash e
345-
if isa(e, InterruptException)
346-
rethrow(e)
343+
catch err
344+
@debug "download_artifact error" tree_hash tarball_url tarball_hash err
345+
if isa(err, InterruptException)
346+
rethrow(err)
347347
end
348348
# If something went wrong during download, return false
349349
return false

0 commit comments

Comments
 (0)