Skip to content

Commit 4e2e515

Browse files
committed
up
1 parent 884268a commit 4e2e515

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/hexdocs/hex_repo.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ defmodule Hexdocs.HexRepo.HTTP do
1717
{:ok, names}
1818

1919
{:ok, {status, _headers, body}} ->
20-
Logger.error("""
20+
message = """
2121
unexpected HTTP #{status}
2222
2323
#{body}\
24-
""")
24+
"""
2525

26-
{:error, :unexpected_response}
26+
{:error, message}
2727

2828
{:error, _reason} = error ->
2929
error

lib/hexdocs/queue.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ defmodule Hexdocs.Queue do
262262
csv = for name <- names, do: [name, "\n"]
263263
Hexdocs.Bucket.upload_package_names_csv(csv)
264264

265-
other ->
266-
Logger.info("error: #{inspect(other)}")
265+
{:error, reason} ->
266+
Logger.error(inspect(reason))
267267
end
268268

269269
Logger.info("UPDATED package_names.csv")

0 commit comments

Comments
 (0)