Update error message to be more verbose

Summary
----
This changes the error message (when connecting to an unavailble
channel) like so:

before:

```
$ croc 6764-jimmy-hilton-inside
securing channel...2024/03/28 17:16:25 room not ready
```

after:

```
$ ./croc 6764-jimmy-hilton-inside
securing channel...2024/03/28 17:16:12 room (secure channel) not ready, maybe peer disconnected
```
This commit is contained in:
Rahul Garg 2024-03-28 17:15:54 -06:00
parent 483c5255bb
commit 241176d8a4
No known key found for this signature in database
GPG Key ID: A31C4BD90844A7CD
1 changed files with 1 additions and 1 deletions

View File

@ -1052,7 +1052,7 @@ func (c *Client) transfer() (err error) {
}
if err != nil && strings.Contains(err.Error(), "unexpected end of JSON input") {
log.Debugf("error: %s", err.Error())
err = fmt.Errorf("room not ready")
err = fmt.Errorf("room (secure channel) not ready, maybe peer disconnected")
}
return
}