error reporting for mapnik_register_datasources and mapnik_register_fonts