Subject: | There is no simple way to get POD errors. |
If parser finds any errors in POD, it either send them to stderr, or creates a special section at the end. Caller does not have a simple way to get error messages.
I am working on a plugin for a third-party system. Plugin should report any errors via $logger->log( $message ), so neither stderr nor added section is convenient to me. I would like to have some method to get parsing errors, for example:
$parser->no_errata_section( 0 );
$parser->complain_stderr( 0 );
$parser->parse_...( ... );
if ( $parser->any_errata_seen() ) {
$logger->log( $parser->errata_seen() );
}