diff options
Diffstat (limited to 'Xerl/Page/Document.pm')
| -rw-r--r-- | Xerl/Page/Document.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Xerl/Page/Document.pm b/Xerl/Page/Document.pm index e2aacb1..13a8254 100644 --- a/Xerl/Page/Document.pm +++ b/Xerl/Page/Document.pm @@ -62,8 +62,11 @@ sub parse($) { my Xerl::Tools::FileIO $io = Xerl::Tools::FileIO->new( path => $path ); - $io->fslurp(); - $io->print(); + if (-1 == $io->fslurp()) { + $config->set_shutdown(1); + } else { + $io->print(); + } return undef; } |
