Update datalib.ring - Better error message when we can't connect to the database.
@@ -10,7 +10,9 @@ Class Database
Func Connect
con = mysql_init()
- mysql_connect(con, cServer, cUserName, cPassWord,cDatabase)
+ if not mysql_connect(con, cServer, cUserName, cPassWord,cDatabase)
+ raise("Error (DataLib-1) : Can't connect to the database server!")
+ ok
Func Disconnect
