Skip to content

Commit

Permalink
Tweak error text
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickforall committed Apr 10, 2019
1 parent 690be3f commit fe9ce84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/paginator/ecto/order_by.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule Paginator.Ecto.OrderBy do
{field, key}

_ ->
raise "Unsupported `order_by` syntax, could not infer the cursor fields. Please supply `cursor_fields` manually."
raise "Unsupported `order_by` syntax, could not infer cursor fields for Paginator. Please supply `cursor_fields` manually."
end
end)
end
Expand Down
2 changes: 1 addition & 1 deletion test/paginator/order_by_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defmodule Paginator.OrderByTest do

test "rejects order_by with a fragment" do
assert_raise RuntimeError,
"Unsupported `order_by` syntax, could not infer the cursor fields. Please supply `cursor_fields` manually.",
"Unsupported `order_by` syntax, could not infer cursor fields for Paginator. Please supply `cursor_fields` manually.",
fn ->
from(p in "payments",
order_by: fragment("amount")
Expand Down

0 comments on commit fe9ce84

Please sign in to comment.