Skip to content

Commit 25c42c7

Browse files
authored
Merge pull request #1215 from ThomasSevestre/master
improve ConnectionError mapping
2 parents 2d35144 + 0e1d64c commit 25c42c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/mysql2/error.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Error < StandardError
2424
1159 => ConnectionError, # ER_NET_READ_INTERRUPTED
2525
1160 => ConnectionError, # ER_NET_ERROR_ON_WRITE
2626
1161 => ConnectionError, # ER_NET_WRITE_INTERRUPTED
27+
1927 => ConnectionError, # ER_CONNECTION_KILLED
2728

2829
2001 => ConnectionError, # CR_SOCKET_CREATE_ERROR
2930
2002 => ConnectionError, # CR_CONNECTION_ERROR

0 commit comments

Comments
 (0)