--- h6-udlånssystemDlg.cpp 2006/09/11 14:02:08 53 +++ h6-udlånssystemDlg.cpp 2006/09/12 17:48:20 57 @@ -138,9 +138,15 @@ OnOK(); } CommonStorage::Instance()->setDBLayer(dbl); - } catch (...) { + } catch (CDBException *ex) { MessageBox(CString("Could not establish connection to the database server\r\n") + - "Please contact your network administrator"); + "Please contact your network administrator\r\n\r\n" + + "ODBC Returned the following message:\r\n" + + ex->m_strError); + + OnOK(); + } catch (...) { + MessageBox("Unknown DB exception"); OnOK(); }