Skip to content

Commit 5c48668

Browse files
mortenpipfitzseb
andauthored
Apply suggestions from code review
Co-authored-by: Sebastian Pfitzner <[email protected]>
1 parent 21e423b commit 5c48668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/authentication.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,12 @@ function _authenticate(
282282
backup_path = string(
283283
auth_toml.tokenpath,
284284
".",
285-
bytes2hex(open(SHA.sha1, "CHANGELOG.md"))[1:8],
285+
bytes2hex(open(SHA.sha1, auth_toml.tokenpath))[1:8],
286286
".backup",
287287
)
288288
mv(auth_toml.tokenpath, backup_path; force=true)
289289
@warn """
290-
Existing token appears invalid, retrying with `force=true`.
290+
Existing token for $(server_uri) appears invalid; forcing reauthentication.
291291
Existing auth.toml backed up in: $(backup_path)
292292
"""
293293
# We assume that _authenticate_retry immediately returned the token,

0 commit comments

Comments
 (0)