Skip to content

Commit 39029c2

Browse files
committed
Merge pull request #137 from gileze33/master
Added generic exception catcher to baton->createConnection
2 parents c38f3f7 + f058923 commit 39029c2

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)