Improve "404.md not found" exception message

pico-3.0-alpha
Daniel Rudolf 10 years ago
parent c3af40c3b9
commit 070da6d73f
  1. 2
      lib/Pico.php

@ -695,7 +695,7 @@ class Pico
if (!file_exists($this->getConfig('content_dir') . $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);

Loading…
Cancel
Save