Merge pull request #17349 from eileenmcnaughton/validate
[civicrm-core.git] / CRM / Utils / SQL / TempTable.php
index da507cbcc2158c08744614adba839f4a39c68062..f8c4e82d563f9907e988c98baf81c50ec000c4ee 100644 (file)
@@ -275,7 +275,7 @@ class CRM_Utils_SQL_TempTable {
    */
   public function setCategory($category) {
     if ($category && !preg_match(self::CATEGORY_REGEXP, $category) || strlen($category) > self::CATEGORY_LENGTH) {
-      throw new \RuntimeException("Malformed temp table category");
+      throw new \RuntimeException("Malformed temp table category $category");
     }
     $this->category = $category;
     return $this;