handle some errors on missing db handle conditions

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17136 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2010-03-30 03:13:49 +00:00
1 parent bc0b04d255
commit 80a93da4ed
4 files changed
+38 -10

No files matched your search

@@ -3232,7 +3232,10 @@ SWITCH_STANDARD_API(show_function)
switch_core_flag_t cflags = switch_core_flags();
switch_status_t status = SWITCH_STATUS_SUCCESS;
switch_core_db_handle(&db);
if (switch_core_db_handle(&db) != SWITCH_STATUS_SUCCESS) {
stream->write_function(stream, "%s", "-ERR Databse Error!\n");
return SWITCH_STATUS_SUCCESS;
}
holder.justcount = 0;