mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2470 from sunnysideup/patch-19
more meaningful error message in ConfigStaticManifest.php (depth < 0)
This commit is contained in:
commit
e161439340
@ -237,7 +237,7 @@ class SS_ConfigStaticManifest_Parser {
|
||||
else if($type == '}') {
|
||||
$depth -= 1;
|
||||
if($depth < $clsdepth) $class = $clsdepth = null;
|
||||
if($depth < 0) user_error("Hmm - depth calc wrong, hit negatives", E_USER_ERROR);
|
||||
if($depth < 0) user_error("Hmm - depth calc wrong, hit negatives, see: ".$this->path, E_USER_ERROR);
|
||||
}
|
||||
else if($type == T_PUBLIC || $type == T_PRIVATE || $type == T_PROTECTED) {
|
||||
$access = $type;
|
||||
|
Loading…
Reference in New Issue
Block a user