enhance: error handling

This commit is contained in:
0xJacky 2023-08-10 23:05:59 +08:00
parent 4e14d26b3f
commit 21a6acb95b
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
5 changed files with 17 additions and 19 deletions

View file

@ -38,8 +38,7 @@ func Pty(c *gin.Context) {
err = <-errorChan
if err != nil && websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway, websocket.CloseNoStatusReceived,
websocket.CloseNormalClosure) {
if err != nil {
logger.Error(err)
}