Skip to content

Commit f058923

Browse files
author
Giles Williams
committed
Added generic exception catcher to baton->createConnection to handle TNS not found errors
1 parent c38f3f7 commit f058923

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/oracle_bindings.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ void OracleClient::EIO_Connect(uv_work_t* req) {
127127
baton->connection = baton->environment->createConnection(baton->user, baton->password, connectionStr.str());
128128
} catch(oracle::occi::SQLException &ex) {
129129
baton->error = new std::string(ex.getMessage());
130+
} catch (const std::exception& ex) {
131+
baton->error = new std::string(ex.what());
130132
}
131133
}
132134

0 commit comments

Comments
 (0)