Show error message when reading port settings fail

This commit is contained in:
Martin Lund 2022-07-20 12:25:13 +02:00
parent 4031636bce
commit 40c8753151

View file

@ -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;
}