From: Barabule Muci Date: 2007-01-17T17:30:41+09:00 Subject: mysql error handle Hello, I am making an connection with mysql Mysql.real_connect("127.0.0.1","root","","f_juso","3306") The problem is when the user and pass is correct it works very well but when the user and pass is wrong it display the debugger and display the message: Mysql::Error in ComenziController#login Access denied for user 'roots'@'localhost' (using password: NO) and all that ruby debugger stuff. I wan't to get the error in ruby and to display only my message like "Invalid password." It's help me, because i have made an login script and i wan't to check the user and password by connecting on mysql with that user and password. Thanks -- Posted via http://www.ruby-forum.com/.