Skip to content

Commit 92a4a5c

Browse files
authored
Fix error message on prefix mismatch (#350)
1 parent f0b7ca0 commit 92a4a5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ecto/migration.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ defmodule Ecto.Migration do
12971297
index_or_table
12981298
true ->
12991299
raise Ecto.MigrationError, message:
1300-
"the :prefix option `#{prefix}` does match the migrator prefix `#{runner_prefix}`"
1300+
"the :prefix option `#{prefix}` does not match the migrator prefix `#{runner_prefix}`"
13011301
end
13021302
end
13031303

test/ecto/migration_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ defmodule Ecto.MigrationTest do
550550
@tag prefix: :bar
551551
test "forward: raise error when prefixes don't match" do
552552
assert_raise Ecto.MigrationError,
553-
"the :prefix option `foo` does match the migrator prefix `bar`", fn ->
553+
"the :prefix option `foo` does not match the migrator prefix `bar`", fn ->
554554
create(table(:posts, prefix: "foo"))
555555
flush()
556556
end

0 commit comments

Comments
 (0)