diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/heartbeatclient.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/heartbeatclient.c b/src/heartbeatclient.c index 6861050..975581f 100644 --- a/src/heartbeatclient.c +++ b/src/heartbeatclient.c @@ -380,8 +380,10 @@ int main(int argc, char* argv[]) ret = 3; else { serial_fd = open(opt.serial_dev_, O_RDWR | O_NOCTTY); - if(serial_fd < 0) + if(serial_fd < 0) { + log_printf(ERROR, "open(%s): %s", opt.serial_dev_, strerror(errno)); ret = 2; + } else { ret = setup_tty(serial_fd, opt.baudrate_); if(ret) |