<div dir="ltr"><div><div><div><div style="margin-left:40px"><span name="Jesper Louis Andersen" class="">Jesper Louis Andersen</span> <span class="">wrote:</span><br><br>Rewrite the driver? It makes sense to return some kind of error tuple in
 this case because it is expected behaviour that you cannot establish a 
connection. Then you can crash on<br>
<br>
  ok = redis:connect(…)<br><br></div>Thanks.  It's odd that redis:connect() returns {ok, Connection} in the success case, which had me expecting it to return an error result in the failure case instead of crashing.<br>
<br></div>I wonder if I could just be making some dumb error, and/or found a bug in the driver, rather than intended behavior.<br><br></div>I've opened a github issue at <a href="https://github.com/gar1t/erlang-redis/issues/1">https://github.com/gar1t/erlang-redis/issues/1</a> <br>
<br></div>Paul<br><br></div>