]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make err more obvious
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 26 Jan 2009 18:10:19 +0000 (18:10 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 26 Jan 2009 18:10:19 +0000 (18:10 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11492 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/esl/fs_cli.c
libs/esl/src/esl.c

index 39961963e50ec00e5ff6fd5342da4e696ca364e4..7ee1b5e37e5d2381f44f8983986801a0b5fa8721 100644 (file)
@@ -619,7 +619,7 @@ int main(int argc, char *argv[])
        }
 
        if (esl_connect(&handle, profile->host, profile->port, profile->pass)) {
-               esl_global_set_default_logger(3);
+               esl_global_set_default_logger(7);
                esl_log(ESL_LOG_ERROR, "Error Connecting [%s]\n", handle.err);
                return -1;
        }
index 95d8b1e0fc67982cdbf14a63e31de8624e28a2ee..38a0910f4611870c9a6ee63c18e2bb9c9d2c9760 100644 (file)
@@ -648,7 +648,7 @@ ESL_DECLARE(esl_status_t) esl_connect(esl_handle_t *handle, const char *host, es
 
        
        if (esl_recv(handle)) {
-               snprintf(handle->err, sizeof(handle->err), "Connection Error");
+               snprintf(handle->err, sizeof(handle->err), "Authentication Error");
                goto fail;
        }
        
@@ -656,7 +656,7 @@ ESL_DECLARE(esl_status_t) esl_connect(esl_handle_t *handle, const char *host, es
        hval = esl_event_get_header(handle->last_event, "reply-text");
 
        if (strcasecmp(hval, "+OK accepted")) {
-               snprintf(handle->err, sizeof(handle->err), "Connection Error");
+               snprintf(handle->err, sizeof(handle->err), "Authentication Error");
                goto fail;
        }