mirror of https://github.com/schollz/croc.git
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:
parent
483c5255bb
commit
241176d8a4
|
@ -1052,7 +1052,7 @@ func (c *Client) transfer() (err error) {
|
||||||
}
|
}
|
||||||
if err != nil && strings.Contains(err.Error(), "unexpected end of JSON input") {
|
if err != nil && strings.Contains(err.Error(), "unexpected end of JSON input") {
|
||||||
log.Debugf("error: %s", err.Error())
|
log.Debugf("error: %s", err.Error())
|
||||||
err = fmt.Errorf("room not ready")
|
err = fmt.Errorf("room (secure channel) not ready, maybe peer disconnected")
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue