Skip to content

Commit

Permalink
Replace critical by error to avoid crashing the app
Browse files Browse the repository at this point in the history
  • Loading branch information
nodauf committed Oct 16, 2021
1 parent 2d1e57f commit 0fa6870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/terminal/terminal-utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (terminal *Terminal) streamCopy(src io.Reader, dst io.Writer, toRemote bool
nBytes, err = src.Read(buf)
if err != nil {
if err != io.EOF {
terminal.Log.Criticalf("Read error: %s\n", err)
terminal.Log.Error("Read error: %s\n", err)

}
break
Expand Down Expand Up @@ -249,7 +249,7 @@ func (terminal *Terminal) streamCopy(src io.Reader, dst io.Writer, toRemote bool
_, err = dst.Write(buf[0:nBytes])
}
if err != nil {
terminal.Log.Critical("Write error: %s\n", err)
terminal.Log.Error("Write error: %s\n", err)
return

}
Expand Down

0 comments on commit 0fa6870

Please sign in to comment.