better error message

This commit is contained in:
Carsten Brandt
2013-10-11 02:19:32 +02:00
parent a922c41ee6
commit 80cf9c8be9

View File

@@ -620,7 +620,7 @@ class View extends Component
if ($pos === null) { if ($pos === null) {
$bundle->jsOptions['position'] = $pos = $position; $bundle->jsOptions['position'] = $pos = $position;
} elseif ($pos > $position) { } elseif ($pos > $position) {
throw new InvalidConfigException("A dependend AssetBundle of '$name' requires a higher position but it conflicts with the position set for '$name'!"); throw new InvalidConfigException("An asset bundle that depends on '$name' has a higher javascript file position configured than '$name'.");
} }
foreach ($bundle->depends as $dep) { foreach ($bundle->depends as $dep) {
$this->registerAssetBundle($dep, $pos); $this->registerAssetBundle($dep, $pos);