Skip to content
Snippets Groups Projects
Commit 0a5f70e6 authored by Hauke Petersen's avatar Hauke Petersen
Browse files

examples/emcute: return after printing error message

parent 2252acf0
Branches
No related tags found
No related merge requests found
...@@ -99,6 +99,7 @@ static int cmd_con(int argc, char **argv) ...@@ -99,6 +99,7 @@ static int cmd_con(int argc, char **argv)
if (emcute_con(&gw, true, topic, message, len, 0) != EMCUTE_OK) { if (emcute_con(&gw, true, topic, message, len, 0) != EMCUTE_OK) {
printf("error: unable to connect to [%s]:%i\n", argv[1], (int)gw.port); printf("error: unable to connect to [%s]:%i\n", argv[1], (int)gw.port);
return 1;
} }
printf("Successfully connected to gateway at [%s]:%i\n", printf("Successfully connected to gateway at [%s]:%i\n",
argv[1], (int)gw.port); argv[1], (int)gw.port);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment