Skip to content

Commit 39441d8

Browse files
committed
display OS error message when (not) sending command
1 parent 0328360 commit 39441d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

th-cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ int main(int argc, char *argv[]) {
151151
err = 1;
152152
}
153153
if (err != 0) {
154-
fprintf( stderr, "Error sending command\n");
154+
perror("send_command");
155155
}
156156
}
157157
close(s);

0 commit comments

Comments
 (0)