Better error reporting
[Pman.Core] / RefreshDatabaseCache.php
index 2994e1b..d574edd 100644 (file)
@@ -29,7 +29,7 @@ class Pman_Core_RefreshDatabaseCache extends Pman
         parent::getAuth(); // load company!
         $au = $this->getAuthUser();
         if (!$au || $au->company()->comptype != 'OWNER') {
-            $this->jerr("Not authenticated", array('authFailure' => true));
+            $this->jerror("LOGIN-NOAUTH", "Not authenticated", array('authFailure' => true));
         }
         $this->authUser = $au;
         return true;