Skip to content

Commit 0fa6870

Browse files
committed
Replace critical by error to avoid crashing the app
1 parent 2d1e57f commit 0fa6870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/terminal/terminal-utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (terminal *Terminal) streamCopy(src io.Reader, dst io.Writer, toRemote bool
176176
nBytes, err = src.Read(buf)
177177
if err != nil {
178178
if err != io.EOF {
179-
terminal.Log.Criticalf("Read error: %s\n", err)
179+
terminal.Log.Error("Read error: %s\n", err)
180180

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

255255
}

0 commit comments

Comments
 (0)