Pico::readPages(): Call Pico::parseFileMeta() again when a exception is thrown
This commit is contained in:
parent
3798cbe478
commit
43f953b67a
1 changed files with 1 additions and 2 deletions
|
@ -962,8 +962,7 @@ class Pico
|
|||
try {
|
||||
$meta = $this->parseFileMeta($rawContent, $headers);
|
||||
} catch (\Symfony\Component\Yaml\Exception\ParseException $e) {
|
||||
$meta = array_fill_keys(array_keys($headers), '');
|
||||
$meta['time'] = $meta['date_formatted'] = '';
|
||||
$meta = $this->parseFileMeta('', $headers);
|
||||
$meta['YAML_ParseError'] = $e->getMessage();
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue