Fixing bad syntax from PR

This commit is contained in:
Daniel Hensby 2016-07-15 17:00:33 +01:00
parent 51e02e2ed7
commit 9282662293
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -1359,8 +1359,8 @@ class Requirements_Backend {
$this->css($theme . $css, $media);
} elseif($module) {
$this->css($module . $css, $media);
} elseif (Director::isDev()) {
throw Exception("The css file doesn't exists. Please check if the file $name.css exists in any context or search for themedCSS references calling this file in your templates.");
} else {
throw new InvalidArgumentException("The css file doesn't exists. Please check if the file $name.css exists in any context or search for themedCSS references calling this file in your templates.");
}
}