diff --git a/src/mysql/connection.cr b/src/mysql/connection.cr index c48a345..32960cd 100644 --- a/src/mysql/connection.cr +++ b/src/mysql/connection.cr @@ -28,8 +28,8 @@ class MySql::Connection < DB::Connection read_ok_or_err do |packet, status| raise "packet #{status} not implemented" end - rescue Errno - raise DB::ConnectionRefused.new + rescue ex : Errno + raise DB::ConnectionRefused.new(ex.message) end end