From d7708fbbf13ac825c641d2842b19db5746cd5439 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc kop@karlpinc.com" Date: Fri, 5 Jun 2026 16:56:02 +0000 Subject: [PATCH] A shorter and more clear error message --- db/schemas/lib/triggers/create/attendance.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/schemas/lib/triggers/create/attendance.m4 b/db/schemas/lib/triggers/create/attendance.m4 index b09cfff..9bb4aaf 100644 --- a/db/schemas/lib/triggers/create/attendance.m4 +++ b/db/schemas/lib/triggers/create/attendance.m4 @@ -59,8 +59,8 @@ CREATE OR REPLACE FUNCTION attendance_func () IF FOUND THEN RAISE EXCEPTION integrity_constraint_violation USING MESSAGE = 'Error on ' || TG_OP || ' of ATTENDANCE' - , DETAIL = 'An individual may not be censused at the feeding' - || ' station unless the individual is under study,' + , DETAIL = 'An individual must be under study to be censused' + || ' at the feeding station,' || ' the ATTENDANCE.Date cannot be before' || ' BIOGRAPHY_DATA.EntryDate or after' || ' BIOGRAPHY_DATA.DepartDate' -- 2.34.1