Skip to content

Commit dd4ffd8

Browse files
committed
Fix URI error handling
1 parent a449438 commit dd4ffd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/supplement/uploads/uri.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ defimpl Capsule.Upload, for: URI do
1414
{:ok, {{~c"HTTP/1.1", code, _}, _headers, _}} ->
1515
{:error, "Unsuccessful response code: #{code}"}
1616

17-
{:error, {reason, _}} ->
18-
{:error, reason}
17+
{:error, reason} ->
18+
{:error, inspect(reason)}
1919
end
2020
end
2121

0 commit comments

Comments
 (0)