summaryrefslogtreecommitdiff
path: root/src/plop.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/plop.erl')
-rw-r--r--src/plop.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plop.erl b/src/plop.erl
index cfb62fc..21a7bae 100644
--- a/src/plop.erl
+++ b/src/plop.erl
@@ -199,6 +199,9 @@ send_http_request(TreeLeafHash, URL, Headers, RequestBody) ->
RequestId = make_ref(),
spawn(fun () ->
case plop_httputil:request("leafhash " ++ mochihex:to_hex(TreeLeafHash), URL, Headers, RequestBody) of
+ {error, Error} ->
+ lager:info("request error: ~p", [Error]),
+ drop;
{failure, _StatusLine, _RespHeaders, _Body} ->
lager:debug("auth check failed"),
drop;