Pārlūkot izejas kodu

Improve "404.md not found" exception message

Daniel Rudolf 9 gadi atpakaļ
vecāks
revīzija
070da6d73f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      lib/Pico.php

+ 1 - 1
lib/Pico.php

@@ -695,7 +695,7 @@ class Pico
 
 
         if (!file_exists($this->getConfig('content_dir') . $errorFile)) {
         if (!file_exists($this->getConfig('content_dir') . $errorFile)) {
             $errorFile = ($errorFileDir === '.') ? '404' . $this->getConfig('content_ext') : $errorFile;
             $errorFile = ($errorFileDir === '.') ? '404' . $this->getConfig('content_ext') : $errorFile;
-            throw new RuntimeException('Required "' . $errorFile . '" not found');
+            throw new RuntimeException('Required "' . $this->getConfig('content_dir') . $errorFile . '" not found');
         }
         }
 
 
         return $this->loadFileContent($this->getConfig('content_dir') . $errorFile);
         return $this->loadFileContent($this->getConfig('content_dir') . $errorFile);