diff --git a/lib/PhpReports/PhpReports.php b/lib/PhpReports/PhpReports.php index 50953305..b9beeb52 100644 --- a/lib/PhpReports/PhpReports.php +++ b/lib/PhpReports/PhpReports.php @@ -268,7 +268,7 @@ public static function getDashboards() { public static function getDashboard($dashboard) { $file = PhpReports::$config['dashboardDir'].'/'.$dashboard.'.json'; if(!file_exists($file)) { - throw "Unknown dashboard - ".$dashboard; + throw new Exception("Unknown dashboard - ".$dashboard); } return json_decode(file_get_contents($file),true);