From ccb0fb83850f85fbbd570bcb1e295470a3a47ef7 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 3 May 2017 19:01:56 +0000 Subject: [PATCH] dblayeroo: update exception message to add the table name git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3568 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayeroo.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dblayeroo.php b/dblayeroo.php index 5e382f8..9be5aa5 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -2282,8 +2282,9 @@ class dblayeroo "The field '%s' must be test on foreign, but is not provided"), $field); if (! array_key_exists ($params[0], $this->setForeignObj)) - $this->DBException (dgettext ("domframework", - "No foreign object configured to test the foreign key")); + $this->DBException (sprintf (dgettext ("domframework", + "No foreign object configured to test the foreign key for table '%s'"), + $this->table)); $this->debugLog ("CLONE to check foreign constraint [$field]"); $objTmp = clone $this->setForeignObj[$params[0]]; $objTmp->debug = $this->debug;