mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 06:48:33 +00:00
make err more obvious
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11492 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
459649c654
commit
d0900fb1d5
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user