Skip to content

Commit d876a0a

Browse files
IanButterworthKristofferC
authored andcommitted
tweak formatting
(cherry picked from commit 53b12b6)
1 parent 036ae90 commit d876a0a

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
@@ -321,13 +321,13 @@ function download_artifact(
321321
try
322322
download_verify_unpack(tarball_url, tarball_hash, dest_dir, ignore_existence=true,
323323
verbose=verbose, quiet_download=quiet_download, io=io)
324-
catch e
325-
@debug "download_artifact error" tree_hash tarball_url tarball_hash e
324+
catch err
325+
@debug "download_artifact error" tree_hash tarball_url tarball_hash err
326326
# Clean that destination directory out if something went wrong
327327
rm(dest_dir; force=true, recursive=true)
328328

329-
if isa(e, InterruptException)
330-
rethrow(e)
329+
if isa(err, InterruptException)
330+
rethrow(err)
331331
end
332332
return false
333333
end
@@ -344,10 +344,10 @@ function download_artifact(
344344
download_verify_unpack(tarball_url, tarball_hash, dir, ignore_existence=true, verbose=verbose,
345345
quiet_download=quiet_download, io=io)
346346
end
347-
catch e
348-
@debug "download_artifact error" tree_hash tarball_url tarball_hash e
349-
if isa(e, InterruptException)
350-
rethrow(e)
347+
catch err
348+
@debug "download_artifact error" tree_hash tarball_url tarball_hash err
349+
if isa(err, InterruptException)
350+
rethrow(err)
351351
end
352352
# If something went wrong during download, return false
353353
return false

0 commit comments

Comments
 (0)