From fe9ce84c89e584a7ff5f4316be28550d910d2264 Mon Sep 17 00:00:00 2001 From: Nick Vernij Date: Mon, 12 Nov 2018 20:01:03 +0100 Subject: [PATCH] Tweak error text --- lib/paginator/ecto/order_by.ex | 2 +- test/paginator/order_by_test.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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")