From 9282662293b28cce056abf88e94123c8cdd172f4 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Fri, 15 Jul 2016 17:00:33 +0100 Subject: [PATCH] Fixing bad syntax from PR --- view/Requirements.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/Requirements.php b/view/Requirements.php index 1bac7c08f..08c5eef5d 100644 --- a/view/Requirements.php +++ b/view/Requirements.php @@ -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."); } }