From 153c495198ad29508e9c89baf87cbfda798c5338 Mon Sep 17 00:00:00 2001 From: Gwynne Raskind Date: Wed, 29 Jan 2025 07:00:00 -0600 Subject: [PATCH] Be more specific about which model's ID property is missing in error message (#626) --- Sources/FluentKit/Model/AnyModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FluentKit/Model/AnyModel.swift b/Sources/FluentKit/Model/AnyModel.swift index 8369a2c4..ed14a6f1 100644 --- a/Sources/FluentKit/Model/AnyModel.swift +++ b/Sources/FluentKit/Model/AnyModel.swift @@ -40,6 +40,6 @@ extension AnyModel { return idChild } } - fatalError("id property must be declared using @ID or @CompositeID") + fatalError("id property for model \(Self.self) must be declared using @ID or @CompositeID") } }