From 4f1da7573db84dcaeb6696b8ed819c9b8359e324 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 15 Jan 2015 10:40:34 +1300 Subject: [PATCH] improve CRM_Utils_Type::escape error message Give people a clue if they have failed to camel case the type --- CRM/Utils/Type.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/Type.php b/CRM/Utils/Type.php index 49d571c73b..ab2ffe6e5c 100644 --- a/CRM/Utils/Type.php +++ b/CRM/Utils/Type.php @@ -250,7 +250,9 @@ class CRM_Utils_Type { break; default: - CRM_Core_Error::fatal("Cannot recognize $type for $data"); + CRM_Core_Error::fatal( + $type . " is not a recognised (camel cased) data type." + ); break; } -- 2.25.1