Skip to content

Loading…

clarify Site::get error message #3226

Closed
anonymous-piwik-user opened this Issue · 1 comment

2 participants

@anonymous-piwik-user

Hi,
the exception thrown by Site::get method could use some clarifications:


--- core/Site.php       (revision 6479)
+++ core/Site.php       (working copy)
@@ -118,7 +118,7 @@
        {
                if(!isset(self::$infoSites[$this->id][$name]))
                {
-                       throw new Exception('The requested website id = '.(int)$this->id.' couldn\'t be found');
+                       throw new Exception('The requested website id = '.(int)$this->id.' or property '.$name.' couldn\'t be found');
                }
                return self::$infoSites[$this->id][$name];
        }
@mattab
Piwik Open Source Analytics member

(In [6611]) Fixes #3226 Thanks for the suggestion @ai

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.