From c4953be5ca834fc66d358b3bf1cea82ff4161941 Mon Sep 17 00:00:00 2001 From: Michael Crumm Date: Wed, 5 Mar 2014 11:47:39 -0800 Subject: [PATCH] Fixing error when calling a non-existent dashboard --- lib/PhpReports/PhpReports.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);