Skip to content

Commit

Permalink
more error matches
Browse files Browse the repository at this point in the history
  • Loading branch information
mnelson committed May 8, 2015
1 parent 013ce06 commit 0638ed4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class ErrorHandler < ::Makara::ErrorHandler
/gone away/i,
/connection[^:]+refused/i,
/could not connect/i,
/can\'t connect/i,
/cannot connect/i,
/connection[^:]+closed/i
].map(&:freeze).freeze

Expand Down
2 changes: 1 addition & 1 deletion lib/makara/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module VERSION

MAJOR = 0
MINOR = 3
PATCH = 0
PATCH = 1
PRE = nil

def self.to_s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
[
%|Mysql2::Error: closed MySQL connection: SELECT `users`.* FROM `users`|,
%|Mysql2::Error: MySQL server has gone away: SELECT `users`.* FROM `users`|,
%|Mysql2::Error (Can't connect to MySQL server on '123.456.789.234' (111))|,
%|Mysql2::Error (Cannot connect to MySQL server on '123.456.789.234' (111))|,
%|Mysql2::Error: Lost connection to MySQL server during query: SELECT `geographies`.* FROM `geographies`|,
%|PGError: server closed the connection unexpectedly This probably me|,
%|Could not connect to server: Connection refused Is the server running on host|,
Expand Down

0 comments on commit 0638ed4

Please sign in to comment.