Skip to content

Commit 1acfb2a

Browse files
authored
Fix missing clause in mysql storage_down/1 (#445)
add case clause in mysql storage_down function to handle all adapter errors (i.e. caused by an unreachable database)
1 parent 68b9229 commit 1acfb2a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/ecto/adapters/myxql.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ defmodule Ecto.Adapters.MyXQL do
210210
{:error, :already_down}
211211
{:error, %{mysql: %{name: :ER_BAD_DB_ERROR}}} ->
212212
{:error, :already_down}
213+
{:error, error} ->
214+
{:error, Exception.message(error)}
213215
{:exit, :killed} ->
214216
{:error, :already_down}
215217
{:exit, exit} ->

0 commit comments

Comments
 (0)