mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-12 20:21:19 +08:00
better error message
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user