Skip to content

Commit

Permalink
Merge pull request #7848 from haukepetersen/fix_emcute_scerrorhandling
Browse files Browse the repository at this point in the history
examples/emcute: return after printing error message
  • Loading branch information
miri64 authored Oct 25, 2017
2 parents 2252acf + 0a5f70e commit 8c7fec0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/emcute/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ static int cmd_con(int argc, char **argv)

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);
return 1;
}
printf("Successfully connected to gateway at [%s]:%i\n",
argv[1], (int)gw.port);
Expand Down

0 comments on commit 8c7fec0

Please sign in to comment.