From 61d9243e554a247c792213fe31c376abb599d2b7 Mon Sep 17 00:00:00 2001 From: Ken Rice Date: Mon, 12 Oct 2015 11:56:20 -0500 Subject: [PATCH] FS-8335 #resolve fix small error check that results in error message not being displayed. --- src/mod/applications/mod_easyroute/mod_easyroute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_easyroute/mod_easyroute.c b/src/mod/applications/mod_easyroute/mod_easyroute.c index e039c86e38..db5852ea91 100644 --- a/src/mod/applications/mod_easyroute/mod_easyroute.c +++ b/src/mod/applications/mod_easyroute/mod_easyroute.c @@ -165,8 +165,8 @@ static switch_status_t load_config(void) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Cannot find SQL Database! (Where\'s the gateways table\?\?)\n"); } } - } else if (globals.db_dsn) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Cannot Open ODBC Connection (did you enable it?!)\n"); + } else if (!globals.db_dsn) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Cannot Open ODBC Connection (did you enable it?)\n"); } reallydone: