Skip to content

Commit

Permalink
Revert "Fixing error when calling a non-existent dashboard"
Browse files Browse the repository at this point in the history
This reverts commit c4953be.
  • Loading branch information
Michael Crumm committed Mar 5, 2014
1 parent 3b23084 commit b2c4bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PhpReports/PhpReports.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public static function getDashboards() {
public static function getDashboard($dashboard) {
$file = PhpReports::$config['dashboardDir'].'/'.$dashboard.'.json';
if(!file_exists($file)) {
throw new Exception("Unknown dashboard - ".$dashboard);
throw "Unknown dashboard - ".$dashboard;
}

return json_decode(file_get_contents($file),true);
Expand Down

0 comments on commit b2c4bd3

Please sign in to comment.