Skip to content

Commit 25f9027

Browse files
authored
Change rethrow(e) to rethrow() (#2736)
* Change `rethrow(e)` to `rethrow()` * No need to capture the error in the e variable
1 parent 754ef8f commit 25f9027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/deploydocs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,14 @@ function git_push(
391391
run(`$(git()) remote add upstream $upstream`)
392392
try
393393
run(`$(git()) fetch upstream`)
394-
catch e
394+
catch
395395
@error """
396396
Git failed to fetch $upstream
397397
This can be caused by a DOCUMENTER_KEY variable that is not correctly set up.
398398
Make sure that the environment variable is properly set up as a Base64-encoded string
399399
of the SSH private key. You may need to re-generate the keys with DocumenterTools.
400400
"""
401-
rethrow(e)
401+
rethrow()
402402
end
403403

404404
try

0 commit comments

Comments
 (0)