mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
enhance: error handling
This commit is contained in:
parent
4e14d26b3f
commit
21a6acb95b
5 changed files with 17 additions and 19 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue