dblayeroo: add more details in case of error in development

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3815 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-07-19 07:02:01 +00:00
parent 2b183d15ad
commit 3ad9d4be68

View File

@@ -1283,7 +1283,8 @@ class dblayeroo
$this->DBException ("Parameter titles invalid: title too long");
if (! is_string ($translation))
$this->DBException ("Parameter titles invalid: ".
"translation not a string");
"translation not a string (table '$this->table',".
"field '$title')");
if (mb_strlen ($translation) > 64)
$this->DBException ("Parameter titles invalid: translation too long");
}