We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fb35a7 commit 48e9517Copy full SHA for 48e9517
src/mysql/connection.cr
@@ -28,8 +28,8 @@ class MySql::Connection < DB::Connection
28
read_ok_or_err do |packet, status|
29
raise "packet #{status} not implemented"
30
end
31
- rescue Errno
32
- raise DB::ConnectionRefused.new
+ rescue ex : Errno
+ raise DB::ConnectionRefused.new(cause: ex, message: ex.message)
33
34
35
0 commit comments