#3226 closed Bug (fixed)

clarify Site::get error message

Reported by: ai Owned by:
Priority: low Milestone: 1.8.3 - Piwik 1.8.3
Component: Core Keywords:
Cc: Sensitive: no

Description

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];
        }

Change History (2)

comment:1 Changed 22 months ago by matt (mattab)

  • Milestone set to 1.8.2 - Piwik 1.8.2

comment:2 Changed 21 months ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.