summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-07-26 23:48:27 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-07-26 23:48:27 (GMT)
commit045bad921d4051650976be56aee1f0b7ba6a98b8 (patch)
tree8a58e144246532f4a3b6a0195e9b65f9d3e1b734 /src
parentbd63d4305e9b63efc178290893194727b82765f2 (diff)
improved error handling at heartbeatclient
Diffstat (limited to 'src')
-rw-r--r--src/heartbeatclient.c4
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)