aboutsummaryrefslogtreecommitdiffstats
path: root/generate.php
diff options
context:
space:
mode:
authorFran├žois Kooman <fkooman@tuxed.net>2017-12-05 10:15:35 +0100
committerFran├žois Kooman <fkooman@tuxed.net>2017-12-05 10:15:35 +0100
commit722a9b6a395bfdd266b5466c509299ae0251c946 (patch)
treefa1f5397ef41fb11232b945415163bda87b06786 /generate.php
parentd0e082f0ce7afad0f5dd4daf44bfe801a8d2b32b (diff)
downloadwww.tuxed.net-722a9b6a395bfdd266b5466c509299ae0251c946.zip
www.tuxed.net-722a9b6a395bfdd266b5466c509299ae0251c946.tar.gz
www.tuxed.net-722a9b6a395bfdd266b5466c509299ae0251c946.tar.xz
reduce train logo size
Diffstat (limited to 'generate.php')
-rw-r--r--generate.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/generate.php b/generate.php
index e4a2ed8..9180790 100644
--- a/generate.php
+++ b/generate.php
@@ -51,7 +51,7 @@ foreach (glob(sprintf('%s/*.md', $pageDir)) as $pageFile) {
$f = fopen($pageFile, 'r');
$line = fgets($f);
if (0 !== strpos($line, '---')) {
- throw new Exception('invalid file!');
+ throw new Exception(sprintf('invalid file "%s"!', $pageFile));
}
$line = fgets($f);
do {
@@ -86,7 +86,7 @@ foreach (glob(sprintf('%s/*.md', $postDir)) as $postFile) {
$f = fopen($postFile, 'r');
$line = fgets($f);
if (0 !== strpos($line, '---')) {
- throw new Exception('invalid file!');
+ throw new Exception(sprintf('invalid file! "%s"', $postFile));
}
$line = fgets($f);
do {