Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #421 from silverstripe-scienceninjas/bad-exception…
…-throwing

BUGFIX Throwing an InvalidArgumentException without the new keyword results in a Fatal error
  • Loading branch information
Sean Harvey committed May 10, 2012
2 parents c05e80c + ce5684c commit 1f4aa05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/GenericTemplateGlobalProvider.php
Expand Up @@ -26,7 +26,7 @@ public static function ModulePath($name) {
if(isset(self::$modules[$name])) {
return self::$modules[$name];
} else {
throw InvalidArgumentException(sprintf('%s is not a supported argument. Possible values: %s', $name, implode(', ', self::$modules)));
throw new InvalidArgumentException(sprintf('%s is not a supported argument. Possible values: %s', $name, implode(', ', self::$modules)));
}
}

Expand Down

0 comments on commit 1f4aa05

Please sign in to comment.