ソースを参照

Merge pull request #9854 from JayPHP/patch-1

Improved thrown MissingElementException message
Mark Story 9 年 前
コミット
777797f9ae
1 ファイル変更3 行追加1 行削除
  1. 3 1
      src/View/View.php

+ 3 - 1
src/View/View.php

@@ -505,7 +505,9 @@ class View implements EventDispatcherInterface
             list ($plugin, $name) = pluginSplit($name, true);
             $name = str_replace('/', DIRECTORY_SEPARATOR, $name);
             $file = $plugin . 'Element' . DIRECTORY_SEPARATOR . $name . $this->_ext;
-            throw new MissingElementException($file);
+            throw new MissingElementException(
+                sprintf('Element file "%s" is missing', $file)
+            );
         }
     }