{
while((id->id == 0) && (id->prev))
id = id->prev;
+ if(!id->id)
+ BOOST_THROW_EXCEPTION(std::runtime_error("Current XML block has no enclosing ID: XML is not valid Boostbook?"));
return id->id;
}
//
preferred_term = true;
}
parent = parent->parent.lock();
+ if(!parent)
+ break;
}
}
catch(const std::exception&){}
catch(boost::exception& e)
{
std::cerr << diagnostic_information(e);
+ return 1;
}
catch(const std::exception& e)
{