From 40c8753151149f0ac4855e3ef2cce937d5b6383f Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Wed, 20 Jul 2022 12:25:13 +0200 Subject: [PATCH] Show error message when reading port settings fail --- src/tty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tty.c b/src/tty.c index 0902a4d..a96c50d 100644 --- a/src/tty.c +++ b/src/tty.c @@ -1031,6 +1031,7 @@ int tty_connect(void) /* Save current port settings */ if (tcgetattr(fd, &tio_old) < 0) { + tio_error_printf_silent("Could not get port settings (%s)", strerror(errno)); goto error_tcgetattr; }