diff options
-rw-r--r-- | doc/src/guide/connect.asciidoc | 2 | ||||
-rw-r--r-- | doc/src/guide/websocket.asciidoc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/guide/connect.asciidoc b/doc/src/guide/connect.asciidoc index f734680..c2e887c 100644 --- a/doc/src/guide/connect.asciidoc +++ b/doc/src/guide/connect.asciidoc @@ -112,7 +112,7 @@ process exits. [source,erlang] receive %% Receive Gun messages here... - {DOWN', Mref, process, ConnPid, Reason} -> + {'DOWN', Mref, process, ConnPid, Reason} -> error_logger:error_msg("Oops!"), exit(Reason); end. diff --git a/doc/src/guide/websocket.asciidoc b/doc/src/guide/websocket.asciidoc index 35580ca..5a1957c 100644 --- a/doc/src/guide/websocket.asciidoc +++ b/doc/src/guide/websocket.asciidoc @@ -58,7 +58,7 @@ receive {gun_response, ConnPid, _, _, Status, Headers} -> exit({ws_upgrade_failed, Status, Headers}); {gun_error, ConnPid, StreamRef, Reason} -> - exit({ws_upgrade_failed, Reason}); + exit({ws_upgrade_failed, Reason}) %% More clauses here as needed. after 1000 -> exit(timeout); |