diff --git a/lib/paginator/ecto/order_by.ex b/lib/paginator/ecto/order_by.ex index 37ea1bd..ddeaaab 100644 --- a/lib/paginator/ecto/order_by.ex +++ b/lib/paginator/ecto/order_by.ex @@ -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 diff --git a/test/paginator/order_by_test.exs b/test/paginator/order_by_test.exs index 1adbcd7..cdf7e9d 100644 --- a/test/paginator/order_by_test.exs +++ b/test/paginator/order_by_test.exs @@ -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")