Permalink
Browse files

Improve debugging output for Parser->title === false

  • Loading branch information...
1 parent 00657fa commit c0af6f641263988f5749967efea8347412c3c52d @saper committed Mar 27, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 index.php
View
@@ -230,9 +230,9 @@
foreach($selectedParsers[$inputEntry['parser']] as $parserClass)
{
$parserRaw = new $parserClass($inputEntry['data']);
- $debug .= "Using $parserClass for ".$inputEntry['data'].": Got title '".$parserRaw->getTitle()."'\n";
if ($parserRaw->getTitle())
{
+ $debug .= "Using $parserClass for \"".$inputEntry['data']."\": Got title \"".$parserRaw->getTitle()."\"\n";
$templateRaw = $parserRaw->getOutput();
$template = $outputTemplates[$inputEntry['parser']];
@@ -242,6 +242,8 @@
unset($parserRaw,$templateRaw,$template);
break;
+ } else {
+ $debug .= "$parserClass does not seem to have entry for \"".$inputEntry['data']."\"\n";
}
}
}

0 comments on commit c0af6f6

Please sign in to comment.