MINOR: Changed die() to user_error() so that correct error level is returned

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65437 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-11-07 02:07:18 +00:00
parent e6c4d32dbc
commit cbbedab5a2

View File

@ -380,7 +380,7 @@ class ManifestBuilder {
$extends = "";
$class="";
if(!$file) die("ManifestBuilder::parse_file(): Couldn't open $filename", E_USER_ERROR);
if(!$file) user_error("ManifestBuilder::parse_file(): Couldn't open $filename", E_USER_ERROR);
// We cache the parse results of each file, since only a few files will have changed between flushings
// And, although it's accurate, TokenisedRegularExpression isn't particularly fast