From: Michael Jerris Date: Wed, 23 Dec 2009 02:03:44 +0000 (+0000) Subject: add help banner on connection failure (ESL-25) X-Git-Tag: v1.0.6~926 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96abcd5efd603c8722ec39bf4b9e94904659571f;p=thirdparty%2Ffreeswitch.git add help banner on connection failure (ESL-25) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16040 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index 1b578acafb..4fe032588d 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -1154,6 +1154,7 @@ int main(int argc, char *argv[]) if (esl_connect(&handle, profile->host, profile->port, profile->pass)) { esl_global_set_default_logger(7); esl_log(ESL_LOG_ERROR, "Error Connecting [%s]\n", handle.err); + if (!argv_exec) usage(argv[0]); return -1; }