Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarify Site::get error message #3226

Closed
anonymous-matomo-user opened this issue Jun 16, 2012 · 1 comment
Closed

clarify Site::get error message #3226

anonymous-matomo-user opened this issue Jun 16, 2012 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

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
Copy link
Member

mattab commented Jul 31, 2012

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

@anonymous-matomo-user anonymous-matomo-user added this to the 1.8.3 - Piwik 1.8.3 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants