Skip to content

Commit

Permalink
Merge pull request #627 from ably/improve-error-message-for-channel
Browse files Browse the repository at this point in the history
Improve error messages for channel attach when realtime is not active
  • Loading branch information
QuintinWillison committed Nov 16, 2020
2 parents 6f6323b + 2240519 commit 61a44e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class ConnectionManager implements ConnectListener {
* default errors
***********************************/

static ErrorInfo REASON_CLOSED = new ErrorInfo("Connection closed by client", 200, 10000);
static ErrorInfo REASON_CLOSED = new ErrorInfo("Can't attach when not in an active state", 200, 10000);
static ErrorInfo REASON_DISCONNECTED = new ErrorInfo("Connection temporarily unavailable", 503, 80003);
static ErrorInfo REASON_SUSPENDED = new ErrorInfo("Connection unavailable", 503, 80002);
static ErrorInfo REASON_FAILED = new ErrorInfo("Connection failed", 400, 80000);
Expand Down

0 comments on commit 61a44e3

Please sign in to comment.